Hopefully making good choices

This commit is contained in:
2025-10-29 16:54:38 -05:00
parent 8f6e52df41
commit 250e33f8e2
6 changed files with 494 additions and 10 deletions

View File

@@ -502,7 +502,6 @@ func (w *LinearLayout) updateLLHWidgetSize(wd Widget) {
if w.stacked {
rH = wd.MinH()
}
w.Log("(%s) Resize (%s): X:%d, Y:%d", w.Id(), wd.Id(), w.getWeightedW(wd), rH)
wd.HandleResize((&Coord{X: w.getWeightedW(wd), Y: rH}).ResizeEvent())
}
@@ -561,11 +560,6 @@ func (w *LinearLayout) updateLLVWidgetPos(wd Widget) {
}
func (w *LinearLayout) updateLLHWidgetPos(wd Widget) {
debug := func(wd Widget, txt string, args ...any) {
if wd.Id() == "mngenc.selectadversary" {
w.Log(txt, args...)
}
}
c := Coord{}
for i := range w.widgets {
if w.widgets[i] == wd {
@@ -576,7 +570,6 @@ func (w *LinearLayout) updateLLHWidgetPos(wd Widget) {
}
if w.widgets[i].Visible() {
c.X = w.widgets[i].GetX() + w.widgets[i].GetW()
debug(wd, "Bumping X: %d + %d = %d", w.widgets[i].GetX(), w.widgets[i].GetW(), c.X)
}
}
@@ -613,7 +606,6 @@ func (w *LinearLayout) updateLLHWidgetPos(wd Widget) {
c.X += 1
c.Y += 1
}
w.Log("(%s) SetPos (%s): X:%d, Y:%d", w.Id(), wd.Id(), c.X, c.Y)
wd.SetPos(c)
}