Skip to content

Window position jumps when content size changes on Android 13-14 #23

@ElliotAl86

Description

@ElliotAl86

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions