aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/confview.go
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
commitb9760e061ec6dde793dd0f7e89dc50ab617f94dd (patch)
tree47730b170b83876642e65061e5329a58e7f28722 /ui/confview.go
parentui: bind all new components together (diff)
downloadwireguard-windows-b9760e061ec6dde793dd0f7e89dc50ab617f94dd.tar.xz
wireguard-windows-b9760e061ec6dde793dd0f7e89dc50ab617f94dd.zip
ui: make confview spacer greedy to take full available width
Signed-off-by: Anthony Dong <aanthony.dong@gmail.com>
Diffstat (limited to 'ui/confview.go')
-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
}