~zsombi/ubuntu-ui-toolkit/83-rtl-support

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Page10.qml

  • Committer: Zsombor Egri
  • Date: 2015-02-25 11:54:57 UTC
  • mfrom: (1352.6.93 82-dragging-mode)
  • Revision ID: zsombor.egri@canonical.com-20150225115457-sf0p7yjxbcvkzedt
prereq sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2012-2015 Canonical Ltd.
 
2
 * Copyright 2012-2014 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
25
25
    id: page
26
26
    anchors {
27
27
        left: parent ? parent.left : undefined
 
28
        right: parent ? parent.right : undefined
28
29
        bottom: parent ? parent.bottom : undefined
29
30
    }
30
 
    // Set width and height so that a parent Loader can be automatically resized
31
 
    // to the size of the loaded Page.
32
 
    width: parentNode ? parentNode.width : undefined
 
31
    // avoid using parent.height because parent may be a Loader which does not have its height set.
33
32
    height: parentNode ? page.flickable ? parentNode.height : parentNode.height - internal.headerHeight : undefined
34
33
 
35
34
    isLeaf: true