Fix dock resizing
This commit is contained in:
parent
3074455386
commit
2f16147055
10 changed files with 170 additions and 52 deletions
|
@ -1651,8 +1651,8 @@ impl workspace::dock::Panel for ProjectPanel {
|
|||
.unwrap_or_else(|| settings::get::<ProjectPanelSettings>(cx).default_width)
|
||||
}
|
||||
|
||||
fn set_size(&mut self, size: f32, cx: &mut ViewContext<Self>) {
|
||||
self.width = Some(size);
|
||||
fn set_size(&mut self, size: Option<f32>, cx: &mut ViewContext<Self>) {
|
||||
self.width = size;
|
||||
self.serialize(cx);
|
||||
cx.notify();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue