diff options
author | Alexander Neumann <an2048@gmail.com> | 2019-05-02 17:04:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 17:04:53 +0200 |
commit | c2e987a8076b724abce441e0e2437560ed64ad6d (patch) | |
tree | 14d6b58e7191efcc6ed72b62cc33524bd3c626c5 | |
parent | Avoid some ineffiency in layouts and factor out common stuff into LayoutBase (diff) | |
parent | TabPageList: Recalculate layout on addition (diff) | |
download | wireguard-windows-c2e987a8076b724abce441e0e2437560ed64ad6d.tar.xz wireguard-windows-c2e987a8076b724abce441e0e2437560ed64ad6d.zip |
Merge pull request #499 from zx2c4-forks/jd/tabbpagelist
TabPageList: Recalculate layout on addition
-rw-r--r-- | tabpagelist.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tabpagelist.go b/tabpagelist.go index b425b301..ce05ddf4 100644 --- a/tabpagelist.go +++ b/tabpagelist.go @@ -108,6 +108,10 @@ func (l *TabPageList) Insert(index int, item *TabPage) error { } } + if item.Layout() != nil { + item.Layout().Update(false) + } + return nil } |