This commit is contained in:
2025-08-27 20:27:22 -05:00
parent 4361d7b5cf
commit f41e583089
4 changed files with 77 additions and 17 deletions

View File

@@ -422,7 +422,9 @@ func (w *LinearLayout) updateLLHWidgetSize(wd Widget) {
}
}
}
wd.HandleResize((&Coord{X: w.getWeightedW(wd), Y: rH}).ResizeEvent())
c := &Coord{X: w.getWeightedW(wd), Y: rH}
w.Log("%s.updateLLHWidgetSize(%s) { %d, %d }", w.Id(), wd.Id(), c.X, c.Y)
wd.HandleResize(c.ResizeEvent())
}
// The Layout should have a static Size set at this point that we can use
@@ -550,10 +552,8 @@ func (w *LinearLayout) getWeightedW(wd Widget) int {
}
}
func (w *LinearLayout) SetStacked(s bool) { w.stacked = s }
func (w *LinearLayout) SetBordered(b bool) { w.insetBorder = b }
func (w *LinearLayout) SetStacked(s bool) { w.stacked = s }
func (w *LinearLayout) SetBordered(b bool) { w.insetBorder = b }
func (w *LinearLayout) SetLogger(l func(string, ...any)) { w.logger = l }
func (w *LinearLayout) Log(txt string, args ...any) {
if w.logger != nil {