diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml index a93bc173a81..2923451de50 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml @@ -87,6 +87,12 @@ ScrollView { itemContextMenu.close() } + onContentHeightChanged: { + var maxPosition = Math.max(contentHeight - height, 0) + if (contentY > maxPosition) + contentY = maxPosition + } + Item { id: styleConstants property int textWidth: 58