mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-04 08:11:09 -07:00
Fix Print settings window getting locked in the y direction
Due to a wrong reference, the settings window was getting an incorrect initialY position. This lead to the window being unable to be dragged in the y direction. CURA-8011
This commit is contained in:
parent
a6cd2fe970
commit
97bb25aef0
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ Item
|
||||||
var maxPt = base.mapFromItem(null,
|
var maxPt = base.mapFromItem(null,
|
||||||
CuraApplication.appWidth() - (contentContainer.width + margin.width),
|
CuraApplication.appWidth() - (contentContainer.width + margin.width),
|
||||||
CuraApplication.appHeight() - (contentContainer.height + margin.height));
|
CuraApplication.appHeight() - (contentContainer.height + margin.height));
|
||||||
var initialY = background.height + base.shadowOffset + margin.height;
|
var initialY = background.height + base.popupOffset + margin.height;
|
||||||
|
|
||||||
contentContainer.x = Math.max(minPt.x, Math.min(maxPt.x, posNewX));
|
contentContainer.x = Math.max(minPt.x, Math.min(maxPt.x, posNewX));
|
||||||
contentContainer.y = Math.max(initialY, Math.min(maxPt.y, posNewY));
|
contentContainer.y = Math.max(initialY, Math.min(maxPt.y, posNewY));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue