Fix resize dock not work
This commit is contained in:
parent
a02c981b74
commit
84de8a88a4
2 changed files with 2 additions and 6 deletions
|
|
@ -12,7 +12,7 @@ use ui::{theme::ActiveTheme, IconName, StyledExt as _};
|
|||
|
||||
const RESIZE_HANDLE_SIZE: Pixels = Pixels(6.);
|
||||
|
||||
use crate::Event;
|
||||
use crate::{DraggedDock, Event};
|
||||
|
||||
use super::workspace::Workspace;
|
||||
|
||||
|
|
@ -394,10 +394,6 @@ impl Dock {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
#[derive(Clone, Render)]
|
||||
struct DraggedDock(DockPosition);
|
||||
|
||||
impl Render for Dock {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl gpui::IntoElement {
|
||||
if self.visible_entry().is_none() {
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ impl FocusableView for Workspace {
|
|||
}
|
||||
|
||||
#[derive(Clone, Render)]
|
||||
struct DraggedDock(DockPosition);
|
||||
pub struct DraggedDock(pub DockPosition);
|
||||
|
||||
impl Render for Workspace {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
|
|
|
|||
Loading…
Reference in a new issue