Landscape mode support, better square view layout

This commit is contained in:
Thomas Perl 2014-03-18 20:36:18 +01:00
parent 9eb422f892
commit 56c9139dd2
3 changed files with 9 additions and 8 deletions

View file

@ -56,9 +56,12 @@ Rectangle {
id: contents
property int border: parent.width * 0.1
width: parent.fullWidth ? parent.width : (parent.width - 2 * border)
property int maxHeight: parent.height - 4 * border
property int maxHeight: parent.height - toolbar.height
height: ((page.contentHeight > 0 && page.contentHeight < maxHeight) ? page.contentHeight : maxHeight) * parent.opacity
anchors.centerIn: parent
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
}
color: Constants.colors.dialog
clip: true
}