~lukas-kde/unity8/windowOpenCloseAnimations

« back to all changes in this revision

Viewing changes to qml/Stages/WindowResizeArea.qml

  • Committer: Lukáš Tinkl
  • Date: 2016-02-29 13:25:54 UTC
  • Revision ID: lukas.tinkl@canonical.com-20160229132554-kgtxk41tgit3bd9e
fix for fullscreen windows height

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                                                            Qt.rect(target.x, target.y, defaultWidth, defaultHeight));
75
75
 
76
76
        target.requestedWidth = Qt.binding(function() { return Math.min(Math.max(windowGeometry.width, d.minimumWidth), screenWidth - root.leftMargin); });
77
 
        target.requestedHeight = Qt.binding(function() { return Math.min(Math.max(windowGeometry.height, d.minimumHeight), root.screenHeight - PanelState.panelHeight); });
 
77
        target.requestedHeight = Qt.binding(function() { return Math.min(Math.max(windowGeometry.height, d.minimumHeight),
 
78
                                                                         root.screenHeight - (target.fullscreen ? 0 : PanelState.panelHeight)); });
78
79
        target.x = Qt.binding(function() { return Math.max(Math.min(windowGeometry.x, root.screenWidth - root.leftMargin - target.requestedWidth),
79
80
                                                           (target.fullscreen ? 0 : root.leftMargin)); });
80
81
        target.y = Qt.binding(function() { return Math.max(Math.min(windowGeometry.y, root.screenHeight - target.requestedHeight), PanelState.panelHeight); });