forked from only52607/compose-floating-window
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Window position jumps when content size changes on Android 13-14 #23
Copy link
Copy link
Open
Description
Hello! Thank you for supporting this library!
I’d like to report a bug. I encountered window position jumps when changing the content size.
I can reproduce this bug on my physical device with API level 33 and in the Android Studio emulator with API 33 and 34. It’s not reproducible on API levels 32 or 35-36 in the emulator.
For tests I changed only FloatingWindowContent:
var expanded by rememberSaveable { mutableStateOf(false) }
val iconSize = if (expanded) 140.dp else 40.dp
FloatingActionButton(
modifier = Modifier.dragFloatingWindow(),
onClick = { expanded = !expanded },
elevation = FloatingActionButtonDefaults.elevation(
defaultElevation = 0.dp
)
) {
Icon(Icons.Filled.Call, "Call", modifier = Modifier.size(iconSize))
}
Screen_recording_20250501_020657.mp4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels