Browse Source
This PR prepares examples to 1.9.0 where CanvasBasedWindow is deprecated ## Testing build all examples ## Release Notes N/Aok/jetstream3_hotfix v1.9.0+dev2790
14 changed files with 116 additions and 33 deletions
@ -1,8 +1,13 @@
@@ -1,8 +1,13 @@
|
||||
#root { |
||||
html, body { |
||||
width: 100%; |
||||
height: 100vh; |
||||
margin: 0; |
||||
padding: 0; |
||||
background-color: white; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
#root > .compose-web-column > div { |
||||
position: relative; |
||||
#composeApp { |
||||
width: 100%; |
||||
height: 100%; |
||||
} |
||||
@ -1,8 +1,13 @@
@@ -1,8 +1,13 @@
|
||||
#root { |
||||
html, body { |
||||
width: 100%; |
||||
height: 100vh; |
||||
height: 100%; |
||||
margin: 0; |
||||
padding: 0; |
||||
background-color: white; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
#root > .compose-web-column > div { |
||||
position: relative; |
||||
#composeApp { |
||||
width: 100%; |
||||
height: 100%; |
||||
} |
||||
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
import androidx.compose.ui.ExperimentalComposeUiApi |
||||
import androidx.compose.ui.window.CanvasBasedWindow |
||||
import androidx.compose.ui.window.ComposeViewport |
||||
|
||||
@OptIn(ExperimentalComposeUiApi::class) |
||||
fun main() { |
||||
CanvasBasedWindow(canvasElementId = "ComposeTarget") { App() } |
||||
ComposeViewport("composeApp") { App() } |
||||
} |
||||
Loading…
Reference in new issue