gocui: resize works on textbox's

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-04-06 18:44:25 -05:00
parent 7cf0d45909
commit 9041a6552e
1 changed files with 8 additions and 1 deletions

View File

@ -168,7 +168,14 @@ func (w *cuiWidget) placeWidgets() {
w.nextH = p.nextH w.nextH = p.nextH
w.gocuiSize.w0 = w.startW w.gocuiSize.w0 = w.startW
w.gocuiSize.h0 = w.startH w.gocuiSize.h0 = w.startH
w.setWH() w.gocuiSize.w1 = w.gocuiSize.w0 + w.gocuiSize.width
w.gocuiSize.h1 = w.gocuiSize.h0 + w.gocuiSize.height
if (w.realWidth < w.gocuiSize.width) {
w.realWidth = w.gocuiSize.width
}
if (w.realHeight < w.gocuiSize.height) {
w.realHeight = w.gocuiSize.height
}
w.showWidgetPlacement(logNow, "place()") w.showWidgetPlacement(logNow, "place()")
} }
} }