-
-
Notifications
You must be signed in to change notification settings - Fork 124
ScrollArea does not expand to fit window size #130
Comments
Take a look at the documentation for |
Also worth looking at some of the examples. The chat example utilizes size policies, to handle sizing. E.g. "this widget should take up as much space as possible", or "this widget should take up as little space as possible" Lines 51 to 57 in 98f3064
|
I have tried both: The full code:
|
It's been a few since I've used tui-go, but if I recall correctly, you may need to change the size policy of the opposing element too (looks like in this case, the bordered "note" box you have). If the element doesn't have a If you can't get it working, can you provide a complete runnable example? The code you have provided is missing quite a bit. Or at least a complete minimal version with the issues you're facing (with dummy data). |
May need to also set size policies on the inner element within the scroll area too, to ensure it maximizes the horizontal space. |
I also set the size policy of the inner element, but no results. The dummy example above has the same issue. |
I've attempted to correct the issue with the example code, however I am unable. If I recall correctly, I may have ran into a similar issue in the past. It's almost like the Unfortunately, I'm not too familiar with the internals of tui-go, and how painting works. Maybe @marcusolsson has an idea? |
@lrstanley Your workaround (adding a second set of columns in the table with an empty label) seems to work. But I do not like this approach so I hope to find some time on the weekend to fix the underlying bug. |
The header is one line Table created like this:
Under the header there is a table created similar to header:
Everthything is aligned until I put the notesInfoList in a ScrollArea, what I do is:
Then the scrollable area shrinks to the left
With scrollable :
Without scrollable :
Any ideas why this is happening?
The text was updated successfully, but these errors were encountered: