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

Changes in width handling since v0.26.3 makes handling of inline objects difficult #2251

Closed
johannes-becker-otto opened this issue Jan 31, 2024 · 1 comment · Fixed by #2273
Labels
bug Bug in code ui Related to UI

Comments

@johannes-becker-otto
Copy link

johannes-becker-otto commented Jan 31, 2024

Hi,

here's a minimal example of inline objects that add up to 100%

page["form"] = ui.form_card(
    box="1 1 4 2",
    items=[
        ui.inline(
            items=[
                ui.textbox(name="textbox1", label="Textbox 1", width="34%"),
                ui.textbox(name="textbox2", label="Textbox 2", width="33%"),
                ui.textbox(name="textbox3", label="Textbox 3", width="33%"),
            ]
        )
    ],
)

1.0.1
image

0.26.3 (actually the screenshots are taken with 0.22.0 but I realized I'm using 0.26.3 right now and it's still fine)
image

Until version 0.26.3 100% remained the same total width no matter how crazy it gets
image

After 0.26.3 the 100% become unreliable, here examples for 1.0.1 and 100% and 50%/50%
image
image

All the best
Hannes

@johannes-becker-otto johannes-becker-otto added the bug Bug in code label Jan 31, 2024
@johannes-becker-otto johannes-becker-otto changed the title Changes in width handling since v0.22.0 makes handling of inline objects difficult Changes in width handling since v0.26.3 makes handling of inline objects difficult Jan 31, 2024
@mturoci
Copy link
Collaborator

mturoci commented Feb 1, 2024

cc @marek-mihok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in code ui Related to UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants