We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 951ee4e commit 6018c0eCopy full SHA for 6018c0e
egui/src/containers/area.rs
@@ -203,6 +203,9 @@ impl Area {
203
204
let state = ctx.memory().areas.get(id).cloned();
205
let is_new = state.is_none();
206
+ if is_new {
207
+ ctx.request_repaint(); // if we don't know the previous size we are likely drawing the area in the wrong place}
208
+ }
209
let mut state = state.unwrap_or_else(|| State {
210
pos: default_pos.unwrap_or_else(|| automatic_area_position(ctx)),
211
size: Vec2::ZERO,
0 commit comments