Work
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user