Can ScrollView fill unused areas (in its grid area)? #648
Unanswered
alanbchristie
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
main/0.1.18
and I have a Widget in Grid layout. I add the widget to an Area witharea6=DatasetWidget()
. The widget fills the grid area, which is fine and expected. Here's a screenshot of the area in the grid the widget occupies...The border extends to the grid area but I need this widget to offer scroll-bars for situations where the content grows.
So I put the widget in a ScrollView with
area6=ScrollView(DatasetWidget())
. When I do this the border shrinks to the size of the data (aTable
). This in itself is not a problem - the real problem is that the remainder of the grid area is left unpainted and exposes the natural/underlying colour of the terminal, as the following screenshot illustrates...Is there any way I can tell the ScrollView to FILL the grid area (with a background colour)?
I don't care that the border just encases the data but it would be much more pleasing if the "unused" area of the grid area was painted with the appropriate background colour (i.e. black in my case).
How do I get the ScrollView to "fill" the designated area when its contents do not?
Alternatively...
Can I know the height of the grid area from the context of my
DatasetWidget
(embedded in theScrollView
)? If I can I can add an appropriate number of blank rows in my widget table. Adding blank rows in the table will force the widget to fit the height of the grid area.A workaround... (hack)
In my case I just use a terminal that has a black background (matching my chosen style) and you don't notice the grid area is not being painted!
Beta Was this translation helpful? Give feedback.
All reactions