forked from qt-creator/qt-creator
EffectMaker: Scroll to bottom when adding an effect node
Fixes: QDS-11434 Change-Id: Ia1010f83468e3243eff4f3f0fbecb4ef733b523b Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -149,6 +149,13 @@ Item {
|
|||||||
clip: true
|
clip: true
|
||||||
interactive: !HelperWidgets.Controller.contextMenuOpened
|
interactive: !HelperWidgets.Controller.contextMenuOpened
|
||||||
|
|
||||||
|
onContentHeightChanged: {
|
||||||
|
if (scrollView.contentItem.height > scrollView.height) {
|
||||||
|
let lastItemH = repeater.itemAt(repeater.count - 1).height
|
||||||
|
scrollView.contentY = scrollView.contentItem.height - lastItemH
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
width: scrollView.width
|
width: scrollView.width
|
||||||
spacing: 1
|
spacing: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user