use containing_rect() in position_element()

This commit is contained in:
Alessandro Mauri 2025-07-14 13:10:14 +02:00
parent 78fc1c1e87
commit 278e4988e9
2 changed files with 2 additions and 11 deletions

2
TODO
View file

@ -59,7 +59,7 @@ to maintain focus until mouse release (fix scroll bars)
[ ] Find a way to concile pixel measurements to the mm ones used in css, for example in min/max sizing
of elements
[ ] Center elements to div (center children_bounds to the center of the div bounds and shift the origin accordingly)
[ ] Use containing_rect() in position_element() to skip some computing and semplify the function
[x] Use containing_rect() in position_element() to skip some computing and semplify the function
[ ] Rename position_element() to layout_element()
[ ] Make functions to mark rows/columns as full, to fix the calculator demo