~osomon/webbrowser-app/bottom-edge

« back to all changes in this revision

Viewing changes to src/app/webbrowser/Browser.qml

  • Committer: Olivier Tilloy
  • Date: 2015-03-19 15:32:16 UTC
  • Revision ID: olivier.tilloy@canonical.com-20150319153216-ze1m1xc6z8dqx9x5
Synchronize the visibility of the bottom edge hint with that of the chrome.

Show diffs side-by-side

added added

removed removed

Lines of Context:
410
410
    Image {
411
411
        objectName: "bottomEdgeHint"
412
412
        source: (formFactor == "mobile") ? "assets/bottom_edge_hint.png" : ""
413
 
        anchors.horizontalCenter: parent.horizontalCenter
 
413
        anchors {
 
414
            horizontalCenter: parent.horizontalCenter
 
415
            bottom: parent.bottom
 
416
            bottomMargin: (chrome.state == "hidden") ? -height : 0
 
417
            Behavior on bottomMargin {
 
418
                UbuntuNumberAnimation {}
 
419
            }
 
420
        }
414
421
        visible: bottomEdgeHandle.enabled
415
422
        opacity: 1 - recentView.opacity
416
423
        Behavior on opacity {
417
424
            UbuntuNumberAnimation {}
418
425
        }
419
 
        y: parent.height - height + (browser.currentWebview ? browser.currentWebview.contentY : 0) / 2
420
426
    }
421
427
 
422
428
    Item {