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

Allow optional overriding of panel (in panel layout) widget styles #9

Open
wants to merge 9 commits into
base: gossip
Choose a base branch
from

Conversation

bu5hm4nn
Copy link

@bu5hm4nn bu5hm4nn commented Oct 9, 2023

Allow passing optional style::Widgets to panel builder to override specific panel style only.

ezicheq and others added 9 commits September 29, 2023 16:07
- `row_start_x` tracks a virtual position in the source paragraph (the one that is too long) for which length has already been processed. When creating an empty row, this position should not be updated as no glyphs were consumed from the source paragraph.
- added example that would demonstrate the problem if the line was included, and that is fixed with this commit
There was confusion in the code over how to break when on a non-empty visual row (`first_row_indentation > 0.0`), causing text to be shifted left outside the ui frame. This is the case for example when another label has already been placed in this `ui.horizontal_wrapped()`.
This fix will not create an empty row, essentially starting a newline, but rather try to fit as much text as possible on the existing row. IMO this is the desired use of a wrapping layout.
I've also added an example that would demonstrate the problem if the line was included, and that is fixed with this commit
…acer.region.cursor is set to the correct line height.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants