Update Form Designer - Better detection for select/draw rectangle dimensions when we move/resize the main form designer window that contains the dockable windows.
@@ -1593,8 +1593,8 @@ class FormDesigner_QWidget from QWidget
C_TOPMARGIN = 25
nX2 = oDesigner.oView.oFilter.getglobalx()
ny2 = oDesigner.oView.oFilter.getglobaly()
- top = min(nY2,nY) - oDesigner.oView.oArea.y() - oSubWindow.y() - y() - C_TOPMARGIN
- left = min(nX2,nX) - oDesigner.oView.oArea.x() - oSubWindow.x() - x()
+ top = min(nY2,nY) - oDesigner.oView.oArea.y() - oSubWindow.y() - y() - C_TOPMARGIN - oDesigner.oView.win.y()
+ left = min(nX2,nX) - oDesigner.oView.oArea.x() - oSubWindow.x() - x() - oDesigner.oView.win.x()
width = max(nX,nX2) - min(nX,nX2)
height = max(nY,nY2) - min(nY,nY2)
return [left,top,width,height]
