Revert "dock: Change bottom dock to floating on bottom of the center view." (#420)
Reverts longbridgeapp/gpui-component#419
This commit is contained in:
parent
a2d6752557
commit
3db84c1247
1 changed files with 1 additions and 16 deletions
|
|
@ -49,8 +49,6 @@ pub struct DockArea {
|
||||||
left_dock: Option<View<Dock>>,
|
left_dock: Option<View<Dock>>,
|
||||||
/// The bottom dock of the dockarea.
|
/// The bottom dock of the dockarea.
|
||||||
bottom_dock: Option<View<Dock>>,
|
bottom_dock: Option<View<Dock>>,
|
||||||
/// If true, the bottom dock is floating on bottom of the center view.
|
|
||||||
float_bottom_dock: bool,
|
|
||||||
/// The right dock of the dockarea.
|
/// The right dock of the dockarea.
|
||||||
right_dock: Option<View<Dock>>,
|
right_dock: Option<View<Dock>>,
|
||||||
/// The top zoom view of the dockarea, if any.
|
/// The top zoom view of the dockarea, if any.
|
||||||
|
|
@ -244,7 +242,6 @@ impl DockArea {
|
||||||
right_dock: None,
|
right_dock: None,
|
||||||
bottom_dock: None,
|
bottom_dock: None,
|
||||||
is_locked: false,
|
is_locked: false,
|
||||||
float_bottom_dock: true,
|
|
||||||
_subscriptions: vec![],
|
_subscriptions: vec![],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -541,7 +538,6 @@ impl Render for DockArea {
|
||||||
// Center
|
// Center
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.relative()
|
|
||||||
.flex()
|
.flex()
|
||||||
.flex_1()
|
.flex_1()
|
||||||
.flex_col()
|
.flex_col()
|
||||||
|
|
@ -555,18 +551,7 @@ impl Render for DockArea {
|
||||||
)
|
)
|
||||||
// Bottom Dock
|
// Bottom Dock
|
||||||
.when_some(self.bottom_dock.clone(), |this, dock| {
|
.when_some(self.bottom_dock.clone(), |this, dock| {
|
||||||
if self.float_bottom_dock {
|
this.child(dock)
|
||||||
this.child(
|
|
||||||
div()
|
|
||||||
.absolute()
|
|
||||||
.left_0()
|
|
||||||
.right_0()
|
|
||||||
.bottom_0()
|
|
||||||
.child(dock),
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
this
|
|
||||||
}
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
// Right Dock
|
// Right Dock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue