Fix position of right dock handle
Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
912f7e6c1a
commit
e6f3731efd
1 changed files with 3 additions and 2 deletions
|
@ -490,6 +490,7 @@ impl Render for Dock {
|
|||
let mut handle = div()
|
||||
.id("resize-handle")
|
||||
.on_drag(DraggedDock(position), |dock, cx| {
|
||||
cx.stop_propagation();
|
||||
cx.build_view(|_| dock.clone())
|
||||
})
|
||||
.on_click(cx.listener(|v, e: &ClickEvent, cx| {
|
||||
|
@ -525,8 +526,8 @@ impl Render for Dock {
|
|||
.absolute()
|
||||
.top(px(0.))
|
||||
.left(px(0.))
|
||||
.w_full()
|
||||
.h(HANDLE_SIZE)
|
||||
.h_full()
|
||||
.w(HANDLE_SIZE)
|
||||
.cursor_col_resize();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue