eframe_template icon indicating copy to clipboard operation
eframe_template copied to clipboard

Moving the mouse after expanding the sidebar causes it to go back to original size

Open iantimmis opened this issue 2 years ago • 2 comments

Steps to reproduce issue:

  • Opened the example web app at emilk.github.io/eframe_template
  • Drag the bar on the right side of the side panel further to the right, release the mouse
  • Move your mouse

The side bar will shrink back to original size.

EDIT:

This happened on 2 computers in the browser, I also downloaded the source code, ran cargo run --release and the mac native compiled version does this as well. Really don't like this behavior.

iantimmis avatar Feb 18 '23 01:02 iantimmis

Thanks for reporting this. I noticed this too, so I looked into it.

The egui documentation for SidePanel offers more information: https://docs.rs/egui/0.21.0/egui/containers/panel/struct.SidePanel.html#method.resizable

As far as I can tell, if there isn't a widget that expands, the panel won't keep its new size. So, a resizable panel must contain:

Placing a Separator in both the panels of the eframe_template example resolved the issue for me.

junelva avatar May 05 '23 02:05 junelva

I think this is a bug in TextEdit - it is resizable, and should keep the side panel size

emilk avatar Sep 04 '23 07:09 emilk