Open davep opened 1 year ago
+1 I'm affected by this bug
In my app, setting a height of 1fr
achieve the desired effect - YMMV.
Also affected by this. fr1 does not achieve the desired effect.
@AustinHasten Could you provide a minimal reproducible example?
Edit to add: Sorry, it might also be useful to know what version of Textual you're using?
I can't reproduce this issue on the latest version so it must have been resolved at some point?
Initially raised on Discord, where someone was trying to get a short
DataTable
to grow large enough to show its content, and to also wrap it in a container that in turn would grow to perfectly wrap theDataTable
. Consider this code:The display shows a
DataTable
on the screen, within aVertical
(that isheight: auto
) and also aStatic
inside aVertical
(that is alsoheight: auto
). When Space is pressed a row is added to each of the tables and a line is added to theStatic
. The expectation is that the twoDataTable
s and theStatic
will grow in height, and so the twoVertical
s will also grow in height.What actually happens is the
DataTable
on theScreen
expands, and theStatic
expands, but theDataTable
in theVertical
doesn't expand. At first glance I think it makes sense to expect the middleDataTable
and its container to grow too.