You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the MRE explains everything. I can't think of any rational reason why it behaves this way. Do you have any ideas? This has been observable for a long time - look below.
MRE:
from __future__ importannotationsfromtextual.appimportApp, ComposeResultfromtextual.containersimportCenter, Containerfromtextual.widgetsimportLabelclassMyApp(App):
CSS=""" #first-container { margin: 10; background: green; height: auto; } #second-container { background: red; height: auto; # width: 100%; # <--- Uncomment for a workaround } #third-container { background: blue; # width: 100%; # <--- Uncomment for a workaround } """defcompose(self) ->ComposeResult:
withContainer(id="first-container"):
yieldLabel("I should have some margin all around")
withContainer(id="second-container"):
yieldLabel("I should have NO margin, but I have some on the right...")
withCenter(id="third-container"):
yieldLabel("Here also should be no margin, but there is some on the right...")
MyApp().run()
0.16.0 Correct behavior
0.20.0third-container has weird behavior
0.40.0 / 0.83.0 both second-container and third-container have weird behavior
The text was updated successfully, but these errors were encountered:
Version:
0.83.0
I think the MRE explains everything. I can't think of any rational reason why it behaves this way. Do you have any ideas? This has been observable for a long time - look below.
MRE:
0.16.0
Correct behavior0.20.0
third-container has weird behavior0.40.0
/0.83.0
both second-container and third-container have weird behaviorThe text was updated successfully, but these errors were encountered: