fix for mainitem width
This commit is contained in:
parent
215306ee13
commit
41dadc7729
@ -112,6 +112,7 @@ Item {
|
|||||||
onActiveWindowChanged: if (!activeWindow) dialog.visible = false
|
onActiveWindowChanged: if (!activeWindow) dialog.visible = false
|
||||||
|
|
||||||
mainItem: Item {
|
mainItem: Item {
|
||||||
|
id: mainItem
|
||||||
width: theme.defaultFont.mSize.width * 40
|
width: theme.defaultFont.mSize.width * 40
|
||||||
height: titleBar.childrenRect.height + contentItem.childrenRect.height + buttonItem.childrenRect.height
|
height: titleBar.childrenRect.height + contentItem.childrenRect.height + buttonItem.childrenRect.height
|
||||||
|
|
||||||
@ -133,6 +134,7 @@ Item {
|
|||||||
Item {
|
Item {
|
||||||
id: contentItem
|
id: contentItem
|
||||||
|
|
||||||
|
onChildrenRectChanged: mainItem.width = childrenRect.width
|
||||||
clip: true
|
clip: true
|
||||||
anchors {
|
anchors {
|
||||||
top: titleBar.bottom
|
top: titleBar.bottom
|
||||||
|
@ -151,11 +151,6 @@ Item {
|
|||||||
}
|
}
|
||||||
sectionLabel.text = Sections.closestSection(y/listView.height)
|
sectionLabel.text = Sections.closestSection(y/listView.height)
|
||||||
}
|
}
|
||||||
Behavior on y {
|
|
||||||
NumberAnimation {
|
|
||||||
duration: 150
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
imagePath: "widgets/tooltip"
|
imagePath: "widgets/tooltip"
|
||||||
|
Loading…
Reference in New Issue
Block a user