diff --git a/crates/ui/src/dock/mod.rs b/crates/ui/src/dock/mod.rs index 640423e8..b4205337 100644 --- a/crates/ui/src/dock/mod.rs +++ b/crates/ui/src/dock/mod.rs @@ -49,8 +49,6 @@ pub struct DockArea { left_dock: Option>, /// The bottom dock of the dockarea. bottom_dock: Option>, - /// If true, the bottom dock is floating on bottom of the center view. - float_bottom_dock: bool, /// The right dock of the dockarea. right_dock: Option>, /// The top zoom view of the dockarea, if any. @@ -244,7 +242,6 @@ impl DockArea { right_dock: None, bottom_dock: None, is_locked: false, - float_bottom_dock: true, _subscriptions: vec![], }; @@ -541,7 +538,6 @@ impl Render for DockArea { // Center .child( div() - .relative() .flex() .flex_1() .flex_col() @@ -555,18 +551,7 @@ impl Render for DockArea { ) // Bottom Dock .when_some(self.bottom_dock.clone(), |this, dock| { - if self.float_bottom_dock { - this.child( - div() - .absolute() - .left_0() - .right_0() - .bottom_0() - .child(dock), - ) - } else { - this - } + this.child(dock) }), ) // Right Dock