when dock content exceed maxLength update autosize

v0.6
Michail Vourlakos 8 years ago
parent 0a4cb9d6f6
commit eda70435f2

@ -1090,6 +1090,18 @@ DragDrop.DropArea {
Layout.preferredHeight: height
property int count: children.length
onWidthChanged: {
if (root.isHorizontal && dock && (width+secondLayout.width >= dock.maxLength)) {
updateAutomaticIconSize();
}
}
onHeightChanged: {
if (root.isVertical && dock && (height+secondLayout.height >= dock.maxLength)) {
updateAutomaticIconSize();
}
}
}
Grid{

Loading…
Cancel
Save