summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
Diffstat (limited to 'size.go')
-rw-r--r--size.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/size.go b/size.go
index 0383863..2604ec5 100644
--- a/size.go
+++ b/size.go
@@ -67,7 +67,7 @@ func (tk *guiWidget) Size() (int, int) {
case widget.Checkbox:
return len(tk.String()) + 2, 3 // TODO: compute this based on 'window dense'
case widget.Button:
- if tk.isWindowDense() {
+ if tk.isDense() {
return len(tk.String()) + 2, 0
}
return len(tk.String()) + 2, 3 // TODO: compute this based on 'window dense'
@@ -244,7 +244,7 @@ func (tk *guiWidget) setFullSize() bool {
if tk.WidgetType() == widget.Button {
tk.full.h1 = tk.full.h0 + 1
}
- if tk.isWindowDense() && tk.isInGrid() {
+ if tk.isDense() && tk.isInGrid() {
tk.full.h1 = tk.full.h0
}
if changed {
@@ -309,7 +309,7 @@ func (tk *guiWidget) buttonFullSize() rectType {
tk.full.h1 = r.h1
// total hack. fix this somewhere eventually correctly
- if tk.isWindowDense() { // total hack. fix this somewhere eventually correctly
+ if tk.isDense() { // total hack. fix this somewhere eventually correctly
tk.full.h0 += 1 // total hack. fix this somewhere eventually correctly
tk.full.h1 = tk.full.h0 // total hack. fix this somewhere eventually correctly
}