Skip to content

Commit

Permalink
QML UI: Don't apply margin fix in landscape (bug 1915)
Browse files Browse the repository at this point in the history
For some reason, we needed to apply a offset of 36 pixels, so that the
overlay sheet aligns with the window. However, this offset gives
problems in landscape (it also gives a visual glitch when the sheet is
closed, as it could be partially visible at the bottom of the window).
This fixes it by not applying the offset fix when the window is in
landscape mode or when the sheet is closed.

Thanks to Andi for reporting this issue.
  • Loading branch information
thp committed Jun 28, 2014
1 parent 91a042b commit d557b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/gpodder/ui/qml/Main.qml
Expand Up @@ -479,7 +479,7 @@ Item {
property string title: ''
acceptButtonText: _('Delete')
anchors.fill: parent
anchors.topMargin: -36
anchors.topMargin: (width > height || !opened) ? 0 : -36 // see bug 1915

rejectButtonText: _('Cancel')

Expand Down

0 comments on commit d557b9a

Please sign in to comment.