Skip to content

Commit 168fd86

Browse files
committed
Add comment
1 parent 356026c commit 168fd86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/egui/src/atomics/atom_layout.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ impl<'atom> AllocatedAtomLayout<'atom> {
392392

393393
for sized in sized_atoms {
394394
let size = sized.size;
395+
// TODO(lucasmerlin): This is not ideal, since this might lead to accumulated rounding errors
396+
// https://github.com/emilk/egui/pull/5830#discussion_r2079627864
395397
let growth = if sized.is_grow() { grow_width } else { 0.0 };
396398

397399
let frame = aligned_rect

0 commit comments

Comments
 (0)