@@ -3285,9 +3285,9 @@ pub const Display = struct {
32853285 parent .type .panel .scrollable .size .width = parent .minimum .width ;
32863286 parent .type .panel .scrollable .size .height = parent .minimum .height ;
32873287 switch (parent .type .panel .direction ) {
3288- .left_to_right = > relayout_left_to_right (self , parent , & expanders , expander_weights ),
3289- .top_to_bottom = > relayout_top_to_bottom (self , parent , & expanders , expander_weights ),
3290- .centre = > relayout_centre (self , parent ),
3288+ .left_to_right = > place_children_left_to_right (self , parent , & expanders , expander_weights ),
3289+ .top_to_bottom = > place_children_top_to_bottom (self , parent , & expanders , expander_weights ),
3290+ .centre = > place_children_centred (self , parent ),
32913291 }
32923292
32933293 // Descend into child elements to allow child panels to also resize.
@@ -3301,7 +3301,7 @@ pub const Display = struct {
33013301 }
33023302 }
33033303
3304- inline fn relayout_centre (_ : * Display , parent : * Element ) void {
3304+ inline fn place_children_centred (_ : * Display , parent : * Element ) void {
33053305 // First pass just does a layout assuming top/left positioning.
33063306 for (parent .type .panel .children .items ) | child | {
33073307 if (child .layout .position == .float ) continue ;
@@ -3328,7 +3328,7 @@ pub const Display = struct {
33283328 //parent.type.panel.scrollable.size.height = @max(needed_height, parent.height);
33293329 }
33303330
3331- inline fn relayout_top_to_bottom (
3331+ inline fn place_children_top_to_bottom (
33323332 _ : * Display ,
33333333 parent : * Element ,
33343334 expanders : * BoundedArray (* Element , 10 ),
@@ -3454,7 +3454,7 @@ pub const Display = struct {
34543454 }
34553455 }
34563456
3457- inline fn relayout_left_to_right (
3457+ inline fn place_children_left_to_right (
34583458 _ : * Display ,
34593459 parent : * Element ,
34603460 _ : * BoundedArray (* Element , 10 ),
0 commit comments