summaryrefslogtreecommitdiff
path: root/view.go
diff options
context:
space:
mode:
Diffstat (limited to 'view.go')
-rw-r--r--view.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/view.go b/view.go
index b518d59..d9ec8a6 100644
--- a/view.go
+++ b/view.go
@@ -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