aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAnthony Dong <aanthony.dong@gmail.com>2019-03-25 18:51:06 +0100
committerAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 11:04:59 +0200
commit65cddc277b620e4f156e5eac069e286c883fc5ee (patch)
tree47730b170b83876642e65061e5329a58e7f28722
parentui: bind all new components together (diff)
downloadwireguard-windows-65cddc277b620e4f156e5eac069e286c883fc5ee.tar.xz
wireguard-windows-65cddc277b620e4f156e5eac069e286c883fc5ee.zip
ui: make confview spacer greedy to take full available width
Signed-off-by: Anthony Dong <aanthony.dong@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--ui/confview.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/confview.go b/ui/confview.go
index 96a0eeb8..761db562 100644
--- a/ui/confview.go
+++ b/ui/confview.go
@@ -214,7 +214,7 @@ func newPaddedGroupGrid(parent walk.Container) (group *walk.GroupBox, err error)
if err != nil {
return nil, err
}
- spacer, err := walk.NewHSpacerFixed(group, 10)
+ spacer, err := walk.NewSpacerWithCfg(group, &walk.SpacerCfg{walk.GrowableHorz | walk.GreedyHorz, walk.Size{10, 0}, false})
if err != nil {
return nil, err
}