mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
fix scroll to error message for forms
This commit is contained in:
parent
3971ce23cf
commit
67c80b8aff
1 changed files with 7 additions and 4 deletions
|
|
@ -24,10 +24,13 @@ FocusScope{
|
|||
do {
|
||||
var parentItem = item.parent
|
||||
if (parentItem.contentItem) {
|
||||
if (parentItem.contentY >= mainItem.y)
|
||||
parentItem.contentY = mainItem.y;
|
||||
else if (parentItem.contentY+height <= mainItem.y+mainItem.height)
|
||||
parentItem.contentY = mainItem.y + mainItem.height - height;
|
||||
var itemPosInParent = mainItem.mapToItem(parentItem.contentItem, mainItem.x, mainItem.y)
|
||||
if (parentItem.contentY > itemPosInParent.y) {
|
||||
parentItem.contentY = itemPosInParent.y;
|
||||
}
|
||||
else if (parentItem.contentY+parentItem.height < itemPosInParent.y+mainItem.height) {
|
||||
parentItem.contentY = itemPosInParent.y + mainItem.height - height;
|
||||
}
|
||||
}
|
||||
item = parentItem
|
||||
} while(item.parent != undefined && parentItem.contentItem === undefined)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue