compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Preview tool. Resize of preview window doesn't force recomposition

Open akurasov opened this issue 4 years ago • 1 comments

0.5.0 - build 270.

@Preview //annotation that says that this function could be used
@Composable //Composable function
fun testUI() { //No parameters! Preview tool has no idea what to pass!
    Box(Modifier.background(Color.LightGray).fillMaxSize()) {
        Text("Hello World!!", Modifier.align(Alignment.Center).padding(10.dp))
    }
}

Scenario:

  1. Run Preview
  2. Make preview window floating
  3. Resize preview window it. Issue 1->text will stay on the same position
  4. Modify text (e.g. remove one !) and rerun preview. Text and box again will keep their positions/sizes.

Making preview window pinned and floating again helps.

akurasov avatar Jul 28 '21 07:07 akurasov

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 17:08 okushnikov