check for currentTab
This commit is contained in:
parent
ee14a95afe
commit
80195aa149
@ -97,11 +97,11 @@ FocusScope {
|
|||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: buttonFrame
|
id: buttonFrame
|
||||||
|
|
||||||
visible: currentTab !== null
|
visible: currentTab && currentTab !== null
|
||||||
x: layout.isHorizontal ? tabBarLayout.x + currentTab.x : 0
|
x: layout.isHorizontal ? tabBarLayout.x + currentTab.x : 0
|
||||||
y: layout.isHorizontal ? 0 : tabBarLayout.y + currentTab.y
|
y: layout.isHorizontal ? 0 : tabBarLayout.y + currentTab.y
|
||||||
width: layout.isHorizontal ? currentTab.width + margins.left + margins.right -1 : parent.width
|
width: currentTab && layout.isHorizontal ? currentTab.width + margins.left + margins.right -1 : parent.width
|
||||||
height: layout.isHorizontal ? parent.height : currentTab.height + margins.top + margins.bottom
|
height: !currentTab || layout.isHorizontal ? parent.height : currentTab.height + margins.top + margins.bottom
|
||||||
imagePath: "widgets/tabbar"
|
imagePath: "widgets/tabbar"
|
||||||
prefix: {
|
prefix: {
|
||||||
var prefix;
|
var prefix;
|
||||||
|
Loading…
Reference in New Issue
Block a user