mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 06:39:21 +00:00
fix: minimum size button default tab
This commit is contained in:
parent
3f401a908a
commit
c233a91875
1 changed files with 3 additions and 2 deletions
|
@ -164,10 +164,11 @@ impl Gupax {
|
||||||
ui.push_id(1, |ui| {
|
ui.push_id(1, |ui| {
|
||||||
ScrollArea::horizontal().show(ui, |ui| {
|
ScrollArea::horizontal().show(ui, |ui| {
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
let width = (ui.available_width() / Tab::COUNT as f32)
|
let width = ((ui.available_width() / Tab::COUNT as f32)
|
||||||
- (ui.spacing().button_padding.y * 2.0
|
- (ui.spacing().button_padding.y * 2.0
|
||||||
+ ui.spacing().item_spacing.x)
|
+ ui.spacing().item_spacing.x)
|
||||||
- SPACE;
|
- SPACE)
|
||||||
|
.max(height_txt_before_button(ui, &TextStyle::Button) * 2.0);
|
||||||
Tab::iter().enumerate().for_each(|(count, tab)| {
|
Tab::iter().enumerate().for_each(|(count, tab)| {
|
||||||
if ui
|
if ui
|
||||||
.add_sized(
|
.add_sized(
|
||||||
|
|
Loading…
Reference in a new issue