Fix BigSmall Icon Tab box behavior when icons can not fit in the screen
REVIEW: 111163
This commit is contained in:
parent
e93b7b7e68
commit
756bf0a5e3
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,7 @@ Item {
|
||||||
property alias margins: hoverItem.margins
|
property alias margins: hoverItem.margins
|
||||||
property alias currentItem: iconsListView.currentItem
|
property alias currentItem: iconsListView.currentItem
|
||||||
focus: true
|
focus: true
|
||||||
|
clip: true
|
||||||
|
|
||||||
|
|
||||||
function setModel(model) {
|
function setModel(model) {
|
||||||
|
@ -92,9 +93,10 @@ Item {
|
||||||
orientation: ListView.Horizontal
|
orientation: ListView.Horizontal
|
||||||
// used for image provider URL to trick Qt into reloading icons when the model changes
|
// used for image provider URL to trick Qt into reloading icons when the model changes
|
||||||
property int imageId: 0
|
property int imageId: 0
|
||||||
width: (iconSize + margins.left + margins.right) * count
|
width: Math.min(parent.width, (iconSize + margins.left + margins.right) * count)
|
||||||
height: iconSize + margins.top + margins.bottom
|
height: iconSize + margins.top + margins.bottom
|
||||||
anchors {
|
anchors {
|
||||||
|
top: parent.top
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
clip: true
|
clip: true
|
||||||
|
|
Loading…
Reference in a new issue