parent
37326819af
commit
d7ff792cf4
1 changed files with 2 additions and 6 deletions
|
|
@ -609,11 +609,7 @@ impl TabPanel {
|
||||||
let is_bottom_dock = bottom_dock_button.is_some();
|
let is_bottom_dock = bottom_dock_button.is_some();
|
||||||
|
|
||||||
let panel_style = dock_area.read(cx).panel_style;
|
let panel_style = dock_area.read(cx).panel_style;
|
||||||
let visible_panels = self
|
let visible_panels = self.visible_panels(cx).collect::<Vec<_>>();
|
||||||
.panels
|
|
||||||
.iter()
|
|
||||||
.filter(|panel| panel.visible(cx))
|
|
||||||
.collect::<Vec<_>>();
|
|
||||||
|
|
||||||
if visible_panels.len() == 1 && panel_style == PanelStyle::default() {
|
if visible_panels.len() == 1 && panel_style == PanelStyle::default() {
|
||||||
let panel = visible_panels.get(0).unwrap();
|
let panel = visible_panels.get(0).unwrap();
|
||||||
|
|
@ -661,7 +657,7 @@ impl TabPanel {
|
||||||
.when(state.draggable, |this| {
|
.when(state.draggable, |this| {
|
||||||
this.on_drag(
|
this.on_drag(
|
||||||
DragPanel {
|
DragPanel {
|
||||||
panel: (**panel).clone(),
|
panel: panel.clone(),
|
||||||
tab_panel: view,
|
tab_panel: view,
|
||||||
},
|
},
|
||||||
|drag, _, _, cx| {
|
|drag, _, _, cx| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue