dock: Fixed panels will lose height when dragged to minimum (#718)
## Before https://github.com/user-attachments/assets/c49464bf-6106-422b-b948-83c5b4c4de60 ## After https://github.com/user-attachments/assets/b83fba18-ecfd-458f-8f25-5d59a60a66cb
This commit is contained in:
parent
8e7ef5631e
commit
7442aa1fba
2 changed files with 3 additions and 3 deletions
|
|
@ -371,7 +371,7 @@ impl Render for Dock {
|
|||
return div();
|
||||
}
|
||||
|
||||
let cache_style = StyleRefinement::default().v_flex().size_full();
|
||||
let cache_style = StyleRefinement::default().absolute().size_full();
|
||||
|
||||
div()
|
||||
.relative()
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use crate::{
|
|||
h_flex,
|
||||
popup_menu::{PopupMenu, PopupMenuExt},
|
||||
tab::{Tab, TabBar},
|
||||
v_flex, ActiveTheme, AxisExt, IconName, Placement, Selectable, Sizable, StyledExt as _,
|
||||
v_flex, ActiveTheme, AxisExt, IconName, Placement, Selectable, Sizable,
|
||||
};
|
||||
|
||||
use super::{
|
||||
|
|
@ -799,7 +799,7 @@ impl TabPanel {
|
|||
.child(
|
||||
active_panel
|
||||
.view()
|
||||
.cached(StyleRefinement::default().v_flex().size_full()),
|
||||
.cached(StyleRefinement::default().absolute().size_full()),
|
||||
),
|
||||
)
|
||||
.when(state.droppable, |this| {
|
||||
|
|
|
|||
Loading…
Reference in a new issue