Repository: lapce/lapce (language: rust)

Issue:
Resizing panel mouse position bug
## Lapce Version

HEAD

## System information

Linux. Gnome (Wayland) + PaperWM
No alternative display scaling

## Describe the bug
When resizing the panel with the mouse, the coloration when the mouse hovers over the left panel works fine. However upon clicking, it jumps and is noticeably to the left as you drag.

## Additional information
![image](https://github.com/lapce/lapce/assets/13157904/814b19a5-d3bd-4c92-9ef1-d19d74b4cae4)
(taken while dragging)


Discussion / hints:
i can confirm. Using LTS Linux Mint Gnome Jammy Jellyfish
new update causes lapce to move in bizarre patterns and sometimes off the screen. you can use the superkey (windows button) + arrow key commands to temporarily hold it in place but it will resize the second it's resized. i had it size down to a 1:1000 ratio at one time and i didnt even know how that was possible, it was just a vertical line
@MinusGix are you also using flatpak?
Nope, I'm running Lapce directly.

Fix patch:
diff --git a/lapce-app/src/app.rs b/lapce-app/src/app.rs
index 7c1b3b3f9e..71d2ca7fa2 100644
--- a/lapce-app/src/app.rs
+++ b/lapce-app/src/app.rs
@@ -1943,7 +1943,7 @@ fn workbench(window_tab_data: Rc<WindowTabData>) -> impl View {
                     main_split_width.set(width);
                 }
             })
-            .style(|s| s.flex_col().size_full())
+            .style(|s| s.flex_col().flex_grow(1.0))
         },
         panel_container_view(window_tab_data.clone(), PanelContainerPosition::Right),
         window_message_view(window_tab_data.messages, window_tab_data.common.config),


Test patch: