~ubuntu-sdk-team/ubuntu-ui-toolkit/orientationManual

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Popups/PopupBase.qml

  • Committer: Christian Dywan
  • Date: 2015-04-02 16:00:37 UTC
  • Revision ID: christian@twotoasts.de-20150402160037-hywcni94p9pq3m1w
Revise AP tests for consistency and comments for clarity

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    automaticOrientation: false
53
53
    transitionEnabled: false
54
54
    // copy value of automaticOrientation from root object (typically a MainView)
55
 
    rotation: stateWrapper.automaticOrientation
 
55
    rotation: stateWrapper.rootItem && stateWrapper.rootItem.automaticOrientation
56
56
     ? Screen.angleBetween(Screen.primaryOrientation, UbuntuApplication.orientation) : 0
57
57
    anchorToKeyboard: true
58
58
 
179
179
    Item {
180
180
        id: stateWrapper
181
181
        property Item rootItem: QuickUtils.rootItem(popupBase)
182
 
        property bool automaticOrientation: rootItem && rootItem.automaticOrientation ? rootItem.automaticOrientation : false
183
182
 
184
183
        property bool windowIsValid: typeof window != "undefined"
185
184
        property Item prevFocus