JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.87k stars 1.15k forks source link

When the scaffolding window is maximized on the windows desktop, the left side is all blank #3061

Open guwan opened 1 year ago

guwan commented 1 year ago

Describe the bug The start window is like this image

when I click to maximize the window, all the left side of him becomes blank image

Affected platforms

Versions

To Reproduce

@Composable @Preview fun App() {

val scaffoldState = rememberScaffoldState()
var currentScreen by remember { mutableStateOf(Screen.Home) }
val coroutineScope = rememberCoroutineScope()
Scaffold(
    scaffoldState = scaffoldState,
    topBar = {
        TopAppBar(
            title = { Text(text = "title") },
            navigationIcon = {
                IconButton(onClick = { coroutineScope.launch { scaffoldState.drawerState.open() } }) {
                    Icon(Icons.Default.Menu, contentDescription = "Menu")
                }
            },
            /*actions = {
                IconButton(onClick = { */
            /* Handle settings click */
            /* }) {
                                        Icon(Icons.Default.Settings, contentDescription = "Settings")
                                    }
                                }*/
        )
    },
    drawerContent = {
    },
    content = {
    }
)

}

Expected behavior A normal window, the left is already hidden

okushnikov commented 1 month ago

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