Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay appears off screen #194

Open
matsumo0922 opened this issue Jan 18, 2025 · 1 comment
Open

Overlay appears off screen #194

matsumo0922 opened this issue Jan 18, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@matsumo0922
Copy link

matsumo0922 commented Jan 18, 2025

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

@matsumo0922 matsumo0922 added the bug Something isn't working label Jan 18, 2025
@svenjacobs
Copy link
Owner

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

Unfortunately this is currently not possible. The developer has to choose an arrangement that fits onto the screen.

@svenjacobs svenjacobs added enhancement New feature or request and removed bug Something isn't working labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants