summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-25 14:47:01 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-25 14:47:01 +0100
commited22221ca136c5ad31826fb9329960fb2e4d0308 (patch)
tree31179a374c6d212c7bab499b018cb80826657485
parentstatic: Invalidate after resize (diff)
downloadwireguard-windows-ed22221ca136c5ad31826fb9329960fb2e4d0308.tar.xz
wireguard-windows-ed22221ca136c5ad31826fb9329960fb2e4d0308.zip
boxlayout: Use same margins and spacing for non-declarative UIs
Currently folks not using the declarative UI encounter zero margins and spacing, because only the declarative structure has these nice defaults. It's probably a good idea to give the real object the nice defaults too.
-rw-r--r--boxlayout.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/boxlayout.go b/boxlayout.go
index cc5203ce..0b1ee38e 100644
--- a/boxlayout.go
+++ b/boxlayout.go
@@ -34,6 +34,8 @@ func newBoxLayout(orientation Orientation) *BoxLayout {
orientation: orientation,
hwnd2StretchFactor: make(map[win.HWND]int),
size2MinSize: make(map[Size]Size),
+ margins: Margins{9, 9, 9, 9},
+ spacing: 6,
}
}