mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 13:47:51 -06:00
Correct solution to width being incorrect after height resize.
CURA-9522
This commit is contained in:
parent
70d69031fe
commit
e99719a08f
1 changed files with 4 additions and 4 deletions
|
@ -67,6 +67,10 @@ Popup
|
|||
}
|
||||
}
|
||||
|
||||
// Changing the height causes implicitWidth to change because of the scrollbar appearing/disappearing
|
||||
// Reassign it here to update the value
|
||||
materialBrandSubMenu.width = implicitWidth;
|
||||
|
||||
if (globalPosition.x > mainWindow.width - materialBrandSubMenu.width)
|
||||
{
|
||||
if (mainWindow.width > materialBrandSubMenu.width)
|
||||
|
@ -81,10 +85,6 @@ Popup
|
|||
materialBrandSubMenu.width = mainWindow.width;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// This function can cause the scrollbar.width to update but this won't update the width (bug?) so it is done explicitly here.
|
||||
width = scrollViewContent.width + scrollbar.width + leftPadding + rightPadding
|
||||
}
|
||||
|
||||
padding: background.border.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue