summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go29
1 files changed, 18 insertions, 11 deletions
diff --git a/tab.go b/tab.go
index 0f0acb5..d73847d 100644
--- a/tab.go
+++ b/tab.go
@@ -3,11 +3,11 @@ package main
import (
"strings"
- "go.wit.com/log"
"go.wit.com/widget"
)
-func (w *guiWidget) Width() int {
+/*
+func (w *guiWidget) RealWidth() int {
if w.frame {
return w.gocuiSize.w1 - w.gocuiSize.w0
}
@@ -20,6 +20,7 @@ func (w *guiWidget) Height() int {
}
return w.gocuiSize.h1 - w.gocuiSize.h0 - 1
}
+*/
func (tk *guiWidget) gocuiSetWH(sizeW, sizeH int) {
w := len(widget.GetString(tk.value))
@@ -73,17 +74,20 @@ func redoWindows(nextW int, nextH int) {
win.deleteView()
win.showView()
- sizeW := win.Width() + me.WindowPadW
- sizeH := win.Height()
- nextW += sizeW
- log.Log(NOW, "redoWindows() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, win.String())
+ /*
+ sizeW := win.Width() + me.WindowPadW
+ sizeH := win.Height()
+ nextW += sizeW
+ log.Log(NOW, "redoWindows() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, win.String())
- if win.hasTabs {
- win.redoTabs(me.TabW, me.TabH)
- }
+ if win.hasTabs {
+ win.redoTabs(me.TabW, me.TabH)
+ }
+ */
}
}
+/*
func (p *guiWidget) redoTabs(nextW int, nextH int) {
for _, w := range p.children {
if w.node.WidgetType != widget.Tab {
@@ -106,7 +110,9 @@ func (p *guiWidget) redoTabs(nextW int, nextH int) {
nextW += sizeW
}
}
+*/
+/*
func (p *guiWidget) drawWindow(nextW int, nextH int) {
for _, w := range p.children {
w.frame = true
@@ -120,9 +126,10 @@ func (p *guiWidget) drawWindow(nextW int, nextH int) {
w.showView()
- sizeW := w.Width() + me.TabPadW
- sizeH := w.Height()
+ sizeW := w.gocuiSize.Width() + me.TabPadW
+ sizeH := w.gocuiSize.Height()
log.Log(NOW, "redoTabs() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, w.String())
nextW += sizeW
}
}
+*/