mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 04:41:06 -07:00
Fix weird update jitter in objectSelector after multiplying models
This commit is contained in:
parent
c3166703b4
commit
678621469f
1 changed files with 6 additions and 1 deletions
|
|
@ -104,9 +104,14 @@ Item
|
||||||
|
|
||||||
// We use an extra property here, since we only want to to be informed about the content size changes.
|
// We use an extra property here, since we only want to to be informed about the content size changes.
|
||||||
onContentHeightChanged:
|
onContentHeightChanged:
|
||||||
|
{
|
||||||
|
// It can sometimes happen that (due to animations / updates) the contentHeight is -1.
|
||||||
|
// This can cause a bunch of updates to trigger oneother, leading to a weird loop.
|
||||||
|
if(contentHeight >= 0)
|
||||||
{
|
{
|
||||||
scroll.height = Math.min(contentHeight, maximumHeight) + scroll.topPadding + scroll.bottomPadding
|
scroll.height = Math.min(contentHeight, maximumHeight) + scroll.topPadding + scroll.bottomPadding
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Component.onCompleted:
|
Component.onCompleted:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue