diff options
author | Nikita Krupenko <krnekit@gmail.com> | 2012-09-27 17:49:21 +0300 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2012-11-09 11:36:45 +0100 |
commit | 7b9a2e37443764864840d294706e09146782d9ea (patch) | |
tree | d125bc9d9c757bd99ea82e0e172e5abc2e410bd5 /imports | |
parent | bd4b71ca74da6b511640cc7e4af5ea8227fcffdb (diff) | |
download | qtquickcontrols-7b9a2e37443764864840d294706e09146782d9ea.tar.gz |
Fixed Splitter making first item expanding after being invisible
If Splitter is invisible it makes first item expanding. This commit fixes
bug.
Change-Id: Iac0a47cf3714d8696d51086c8425f2f42148a774
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'imports')
-rw-r--r-- | imports/QtDesktop/custom/Splitter.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/imports/QtDesktop/custom/Splitter.qml b/imports/QtDesktop/custom/Splitter.qml index 24d64b28..f68f8ba0 100644 --- a/imports/QtDesktop/custom/Splitter.qml +++ b/imports/QtDesktop/custom/Splitter.qml @@ -121,7 +121,9 @@ Splitter { break } } - item.Splitter.expanding = true + if (items.length && item.visible) { + item.Splitter.expanding = true + } } d.itemExpandingGuard = false |