Skip to content

Add support for horizontally aligned handles through .add_row()#717

Open
Amit0617 wants to merge 2 commits into
viser-project:mainfrom
Amit0617:main
Open

Add support for horizontally aligned handles through .add_row()#717
Amit0617 wants to merge 2 commits into
viser-project:mainfrom
Amit0617:main

Conversation

@Amit0617

Copy link
Copy Markdown

fixes #655

@Amit0617

Copy link
Copy Markdown
Author

@brentyi This wasn't included in 1.0.28 version?

@brentyi

brentyi commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Haven't had time to fully evaluate it yet, sorry! Would be nice to merge but I think there are a lot of possible details, like how wider inputs (eg add_text()) behave inside of add_row().

@Amit0617

Copy link
Copy Markdown
Author

Oh yes, I should have clarified it. Currently, if you try adding really long text label it gets wrapped to next lines (like the Show Coordinate axes checkbox) input value which shows initial_value of text gets shrunk to a little bigger than checkbox.

Anything which takes full width of panel like add_rgb gets arranged vertically in next line like it wasn't added in the row.
And as already mentioned in #655 (comment), more than 2 children get below the row.

I found an edge case too, a button with really long text overflows out of panel.
I feel add_row must have some limits. Like enforcing up to 2 children (since panel width is restricted) and restricting what children should be allowed inside add_row like only buttons, checkboxes etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Side by Side GUI handles

2 participants