* Fix incorrect max_width/height of panels
* Fix set_width/set_min_width/set_height/set_min_height
Closes https://github.com/emilk/egui/issues/647
Broke in https://github.com/emilk/egui/pull/629
* Fix expand_to_include_x/expand_to_include_y
* Make minimum grid column width propagate properly
* Expand cursor when max_rect expands
* Add ui.expand_to_include_y
* Only expand cursor in advance
* demo: clean up font_book code
* Fix: Make sure `TextEdit` contents expand to fill width if applicable
* ProgressBar: minimum width and fix for having it in an infinite layout
* clippy fix
* Add methods for optionally displaying the background/axes of a `Plot`
These are particularly useful when using the `Plot` widget as an overlay
over an existing grid or some other content.
* Allow for showing each axis of a `Plot` individually
* Add collapsing header select as selectable label
* Modified Tree demo adding selectable example
* Update egui/src/containers/collapsing_header.rs
Selected is not linked to selectable
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* Update egui/src/containers/collapsing_header.rs
Description example
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* Changing example without name clashing
* Fixing merge issue (ah I miss P4 sometimes)
* Fixing doctest example
* Add possibility to show background to a single one
* Fixing clippy test
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Previously app code was run from within the event loop
which lead to file dialogs (e.g. using nfd2) to hang
(see https://github.com/rust-windowing/winit/issues/1779)
Now egui_glium polls for events and then runs the app code.
* Allow using the layout cursor to restrict available area
* Avoid id clashes when putting panels inside a Ui
* Panels: Propagate height/width range to inner Ui
* Allow easy placement of panels inside of Ui:s
* demo: simplify Windows with Panels demo
If the app last ran on two monitors and only one is now connected, then
the given position is invalid.
If this happens on Mac, the window is clamped into valid area.
If this happens on Windows, the window is hidden and impossible
to bring to get at. So we no longer restore window positions on Windows.
* Fix blocking when using custom large font files
* Add docstring explaining laziness
* Put characters behind a epaint::RwLock
* cargo fmt font.rs
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>