aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-17 10:35:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-17 10:35:04 +0200
commitd7d6691bf153d3dbbdc53c04111c212b419e2f2b (patch)
treebd71633932eaa30c5e24067965ecafb45c824d4d /ui
parentREADME: add missing dep (diff)
downloadwireguard-windows-d7d6691bf153d3dbbdc53c04111c212b419e2f2b.tar.xz
wireguard-windows-d7d6691bf153d3dbbdc53c04111c212b419e2f2b.zip
ui: add layout item helper for new layout system
Diffstat (limited to 'ui')
-rw-r--r--ui/syntax/syntaxedit.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/syntax/syntaxedit.go b/ui/syntax/syntaxedit.go
index 1f0fb692..257bdbd2 100644
--- a/ui/syntax/syntaxedit.go
+++ b/ui/syntax/syntaxedit.go
@@ -44,6 +44,10 @@ func (se *SyntaxEdit) SizeHint() walk.Size {
return walk.Size{200, 100}
}
+func (*SyntaxEdit) CreateLayoutItem(ctx *walk.LayoutContext) walk.LayoutItem {
+ return walk.NewGreedyLayoutItem()
+}
+
func (se *SyntaxEdit) Text() string {
textLength := se.SendMessage(win.WM_GETTEXTLENGTH, 0, 0)
buf := make([]uint16, textLength+1)