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
(egui 0.18.1 on macOS 12.x with winit + wgpu backend)
When you nest these elements, then increase the vertical padding in style.spacing.button_padding, the button grows downward rather than upward, which causes a few problems.
I'm using a bottom-up layout because I'm trying to put multiple buttons horizontally at the bottom of a fixed size window below the content. The buttons do appear there, but if I add button_padding, the button expands downward to grow the window rather than upward with the layout.
I had to use .fixed_size for this demonstration, because if I use e.g. .default_size, the window becomes infinitely tall (presumably no matter how big the window is, the button grows it vertically every frame)
lunixbochs
changed the title
Layout::bottom_up with style.spacing.button_padding increases size downward
Layout::bottom_up -> ui.horizontal -> ui.button with style.spacing.button_padding increases size downward
May 21, 2022
(egui 0.18.1 on macOS 12.x with winit + wgpu backend)
When you nest these elements, then increase the vertical padding in
style.spacing.button_padding
, the button grows downward rather than upward, which causes a few problems.I'm using a bottom-up layout because I'm trying to put multiple buttons horizontally at the bottom of a fixed size window below the content. The buttons do appear there, but if I add
button_padding
, the button expands downward to grow the window rather than upward with the layout.I had to use
.fixed_size
for this demonstration, because if I use e.g..default_size
, the window becomes infinitely tall (presumably no matter how big the window is, the button grows it vertically every frame)The text was updated successfully, but these errors were encountered: