Skip to content

Overlay appears off screen #194

@matsumo0922

Description

@matsumo0922

Describe the bug
Specifying RevealOverlayArrangement.Top or RevealOverlayArrangement.Bottom will make the Overlay appear offscreen.

To Reproduce
Reproducing the problem is very simple. Just change the Overlay of the Sample App as follows

when (key) {
    Keys.Fab -> {
        OverlayText(
            modifier = Modifier.align(
                verticalArrangement = RevealOverlayArrangement.Top,
            ),
            text = "Click button to get started",
            arrow = Arrow.bottom(),
        )
    }

    Keys.Explanation -> {
        ...
    }
}

Keys.Fab -> OverlayText(
modifier = Modifier.align(
horizontalArrangement = RevealOverlayArrangement.Start,
),
text = "Click button to get started",
arrow = Arrow.end(),
)

Expected behavior
Expect the overlay to appear in the screen (with automatic adjustment of width, arrow position, etc.)

Screenshots

Issue

Smartphone (please complete the following information):

  • Android 15

Version

  • 3.1.1

Additional context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions