set current sizes on state change

This commit is contained in:
Marco Martin 2013-05-09 14:08:43 +02:00
parent 1d6382d48c
commit 4c76e033a4
2 changed files with 20 additions and 0 deletions

View File

@ -71,6 +71,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges { PropertyChanges {
target: root target: root
prefix: "north" prefix: "north"
height: root.implicitHeight
} }
AnchorChanges { AnchorChanges {
target: root target: root
@ -114,6 +115,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges { PropertyChanges {
target: root target: root
prefix: "south" prefix: "south"
height: root.implicitHeight
} }
AnchorChanges { AnchorChanges {
target: root target: root
@ -157,6 +159,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges { PropertyChanges {
target: root target: root
prefix: "west" prefix: "west"
width: root.implicitWidth
} }
AnchorChanges { AnchorChanges {
target: root target: root
@ -200,6 +203,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges { PropertyChanges {
target: root target: root
prefix: "east" prefix: "east"
width: root.implicitWidth
} }
AnchorChanges { AnchorChanges {
target: root target: root

View File

@ -64,6 +64,10 @@ Item {
states: [ states: [
State { State {
name: "TopEdge" name: "TopEdge"
PropertyChanges {
target: root
height: root.implicitHeight
}
AnchorChanges { AnchorChanges {
target: root target: root
anchors { anchors {
@ -76,6 +80,10 @@ Item {
}, },
State { State {
name: "BottomEdge" name: "BottomEdge"
PropertyChanges {
target: root
height: root.implicitHeight
}
AnchorChanges { AnchorChanges {
target: root target: root
anchors { anchors {
@ -88,6 +96,10 @@ Item {
}, },
State { State {
name: "LeftEdge" name: "LeftEdge"
PropertyChanges {
target: root
width: root.implicitWidth
}
AnchorChanges { AnchorChanges {
target: root target: root
anchors { anchors {
@ -100,6 +112,10 @@ Item {
}, },
State { State {
name: "RightEdge" name: "RightEdge"
PropertyChanges {
target: root
width: root.implicitWidth
}
AnchorChanges { AnchorChanges {
target: root target: root
anchors { anchors {