diff options
Diffstat (limited to 'view.go')
| -rw-r--r-- | view.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -23,6 +23,13 @@ func (tk *guiWidget) textResize() { h += 1 } + // todo: fix all this old code + if tk.node.WidgetType == widget.Textbox { + if w < 5 { + w = 5 + } + } + // this is old code. now move this somewhere smarter tk.gocuiSize.w1 = tk.gocuiSize.w0 + w + me.FramePadW // TODO: move this FramePadW out of here tk.gocuiSize.h1 = tk.gocuiSize.h0 + h + me.FramePadH // TODO: fix this size computation |
