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

Style visibility=HIDDEN has no effect on GTK #2447

Open
LordOfDragons opened this issue Mar 9, 2024 · 1 comment · May be fixed by #2435
Open

Style visibility=HIDDEN has no effect on GTK #2447

LordOfDragons opened this issue Mar 9, 2024 · 1 comment · May be fixed by #2435
Labels
bug A crash or error in behavior. linux The issue relates Linux support.

Comments

@LordOfDragons
Copy link

Describe the bug

Using this code:

        self.sel_control = toga.Selection(
            items=[], style=tp.Pack(flex=1), accessor="name",
            on_change=self.on_selection_control_sel_changed)
        box.add(self.sel_control)
        self.sel_control.style.update(visibility=toga.style.pack.HIDDEN)

The widget is still visible. Makes it impossible to have a box with different widgets showing only the one matching an input type. And no the OptionContainer is not an option since it has tabs and does not guarantee invisibility.

Steps to reproduce

Use the code above. Widget is still visible

Expected behavior

Widget is invisible

Screenshots

No response

Environment

Linux, most recent Toga

Logs

No response

Additional context

No response

@LordOfDragons LordOfDragons added the bug A crash or error in behavior. label Mar 9, 2024
@mhsmith mhsmith changed the title Style visibility=HIDDEN has no effect Style visibility=HIDDEN has no effect on GTK Mar 9, 2024
@mhsmith
Copy link
Member

mhsmith commented Mar 9, 2024

Thanks for the report. We're currently working on this in #2435, but I'll leave this issue open for ... visibility.

@mhsmith mhsmith added the linux The issue relates Linux support. label Mar 9, 2024
@mhsmith mhsmith linked a pull request Mar 9, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior. linux The issue relates Linux support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants