egui/crates/egui_demo_lib/src
giuseppeferrari c6bd30642a
Avoid infinite extension of ColorTest inside a Window (#5698)
Current implementation of ColorTest infinitely expand horizontally at
each redraw if included in a Window.

The effect can be see replacing the Panel in the ColorTestApp::update
with a Window:
```
egui::CentralPanel::default().show(ctx, |ui| {
   egui::Window::new("Colors").vscroll(true).show(ctx, |ui| {
   if frame.is_web() {
      ui.label(
         "NOTE: Some old browsers stuck on WebGL1 without sRGB support will not pass the color test.",
      );
      ui.separator();
   }
   egui::ScrollArea::both().auto_shrink(false).show(ui, |ui| {
      self.color_test.ui(ui);
   });
   self.color_test.ui(ui);
});
```

The cause is the is the _pixel_test_strokes_ function that, at each
redraw, tries to expand the target rectangle of 2.0 points in each
direction.
2025-04-08 11:38:13 +02:00
..
demo Add overline option for Table rows (#5637) 2025-04-08 11:36:43 +02:00
easy_mark Use `TextBuffer` for `layouter` in `TextEdit` instead of `&str` (#5712) 2025-04-06 18:45:20 +02:00
lib.rs Use Style's font size in egui_extras::syntax_highlighting (#5090) 2024-09-10 11:38:26 +02:00
rendering_test.rs Avoid infinite extension of ColorTest inside a Window (#5698) 2025-04-08 11:38:13 +02:00