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

Content overlaps with another tab #233

Open
lnenad opened this issue Mar 19, 2024 · 1 comment
Open

Content overlaps with another tab #233

lnenad opened this issue Mar 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lnenad
Copy link

lnenad commented Mar 19, 2024

Describe the bug
I have an area that is manually positioned that contains a button. When I split the tabs horizontally so they sit one on top of another and resize so that button should become hidden by the bottom tab, the button stays visible and on top of the content from the bottom tab.

Expected behavior
The content of the manually positioned area should be hidden by the overlapping tab background.

Screenshots

Before resize:
image

After resize:
image

You see the button is still visible even though it should be clipped by the lower tab background.

@lnenad lnenad added the bug Something isn't working label Mar 19, 2024
@Adanos020
Copy link
Owner

Hey, if you're placing a widget manually, then it can't be clipped. Instead, consider using ui.horizontal() and putting a ui.add_space(amount) before the button. You can get the amount of horizontal space left using ui.available_width().

Let me know if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants