gocui: resize works on textbox's
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
7cf0d45909
commit
9041a6552e
|
@ -168,7 +168,14 @@ func (w *cuiWidget) placeWidgets() {
|
|||
w.nextH = p.nextH
|
||||
w.gocuiSize.w0 = w.startW
|
||||
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()")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue