Browse Source

Grammer

pull/1738/head
xiaoshen 3 years ago committed by GitHub
parent
commit
749d2770c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      experimental/lwjgl-integration/README.md

4
experimental/lwjgl-integration/README.md

@ -24,12 +24,12 @@ CompositionLocalProvider(
### Popup
Since Compose still use some awt events (https://github.com/JetBrains/compose-jb/issues/1736), you can provide a fake contaniner.
Since Compose still use some AWT events (https://github.com/JetBrains/compose-jb/issues/1736), you can provide a fake contaniner.
```kotlin
val awtContainer = object : Container() {}
// call it when your custom compose app changes winodw position
// call it when your custom compose app changes window position
fun onWindowUpdate(x: Int, y: Int, width: Int, height: Int) {
awtContainer.setBounds(x, y, width, height)
}

Loading…
Cancel
Save