summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-19 04:06:27 -0600
committerJeff Carr <[email protected]>2025-02-19 17:39:45 -0600
commit377b08eeb6e21564f09a50db03ddd26e4e1f575f (patch)
tree6f9bf5bca9fd6921ed193460c1b0a065eddaba81 /size.go
parent22e139e2e5fcf63b6387cc606c2dd68283c2c598 (diff)
protobuf stuff
Diffstat (limited to 'size.go')
-rw-r--r--size.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/size.go b/size.go
index 06c3a65..94248ff 100644
--- a/size.go
+++ b/size.go
@@ -9,19 +9,6 @@ import (
"go.wit.com/widget"
)
-func (tk *guiWidget) Hidden() bool {
- if tk.parent == nil {
- return tk.node.Hidden()
- }
- if tk.parent.node.WidgetId == 0 {
- return tk.node.Hidden()
- }
- if tk.parent.Hidden() {
- return true
- }
- return tk.node.Hidden()
-}
-
func (tk *guiWidget) Size() (int, int) {
if tk == nil {
return 0, 0
@@ -139,7 +126,7 @@ func (w *guiWidget) sizeBox() (int, int) {
continue
}
sizeW, sizeH := child.Size()
- if child.node.State.Direction == widget.Vertical {
+ if child.Direction() == widget.Vertical {
maxW += sizeW
if sizeH > maxH {
maxH = sizeH