Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iantimmis opened this issue Feb 18, 2023 · 2 comments

Comments

@iantimmis
Copy link

iantimmis commented Feb 18, 2023

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.

@junelva
Copy link

junelva commented May 5, 2023

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.

@emilk
Copy link
Owner

emilk commented Sep 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants