Skip to content

Commit

Permalink
LSP preview: workaround the resize handler not working
Browse files Browse the repository at this point in the history
If resizing makes the value of is-resizable dirty, we would hit issue #3953
and the handle would be re-created and the drag operation aborted
  • Loading branch information
ogoffart committed Jan 2, 2024
1 parent 01e6429 commit c5be0ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/lsp/ui/resizer.slint
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export component Resizer {
@children
}

if root.is-resizable: Rectangle {
Rectangle {
visible: is-resizable;

ResizeHandle { // N
resize(x-offset, y-offset) => { root.resize(root.width, y-offset * -1.0 + root.height); }
mouse-cursor: MouseCursor.n-resize;
Expand Down

0 comments on commit c5be0ec

Please sign in to comment.