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
In my actual use case, I want the title to have a margin of 16 and the body to have an inner margin of 0.
My workaround at the moment is to use a custom frame and set frame.inner_margin.bottom = 16 and top = 0, and then create an inner frame inside the window with outer_margin.bottom = -16, but this feels like a hack...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way of setting the margins of a Window's title and body independently?
I've seen
style.spacing.window_margin = Margin::same(50);being suggested, but it affects both.I've also tried using a custom frame for the Window, but, again, it affects both:
In my actual use case, I want the title to have a margin of 16 and the body to have an inner margin of 0.
My workaround at the moment is to use a custom frame and set
frame.inner_margin.bottom = 16andtop = 0, and then create an inner frame inside the window withouter_margin.bottom = -16, but this feels like a hack...Beta Was this translation helpful? Give feedback.
All reactions