summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
Diffstat (limited to 'place.go')
-rw-r--r--place.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/place.go b/place.go
index e0c3097..de20467 100644
--- a/place.go
+++ b/place.go
@@ -192,6 +192,8 @@ func (w *guiWidget) placeGrid(startW int, startH int) (int, int) {
func (w *guiWidget) realGocuiSize() *rectType {
var f func(tk *guiWidget, r *rectType)
newR := new(rectType)
+
+ outputW, outputH := w.Size()
// initialize the values to opposite
newR.w0 = outputW
newR.h0 = outputH