Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gladkov committed Jun 29, 2022
2 parents 04d4952 + 78c8a99 commit fb7ba9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildSrc/buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object Dependencies {

val odyssey = "1.0.0-beta11"
val odyssey = "1.0.0-beta12"
val odysseyPackage = "io.github.alexgladkov"

object DI {
Expand Down
4 changes: 2 additions & 2 deletions documentation/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Add dependencies to gradle
```kotlin
named("commonMain") {
dependencies {
implementation("io.github.alexgladkov:odyssey-core:1.0.0-beta11") // For core classes
implementation("io.github.alexgladkov:odyssey-compose:1.0.0-beta11") // For compose extensions
implementation("io.github.alexgladkov:odyssey-core:1.0.0-beta12") // For core classes
implementation("io.github.alexgladkov:odyssey-compose:1.0.0-beta12") // For compose extensions
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.dp
import ru.alexgladkov.odyssey.compose.controllers.ModalController
Expand All @@ -30,8 +31,13 @@ internal fun BoxScope.BottomModalSheet(

var modifier = Modifier.align(Alignment.BottomStart).fillMaxWidth()

val density = LocalDensity.current


if (bundle.maxHeight != null)
modifier = modifier.fillMaxHeight(bundle.maxHeight)
modifier = modifier
.padding(top = with(density) { (height - viewHeight).toDp() })
.fillMaxHeight()

var offsetValue by remember { mutableStateOf(height) }
var backdropAlphaValue by remember { mutableStateOf(0f) }
Expand Down

0 comments on commit fb7ba9e

Please sign in to comment.