~nik90/unav/marcos-menu-structure

« back to all changes in this revision

Viewing changes to qml/SearchPage.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2016-04-17 16:42:49 UTC
  • Revision ID: krnekhelesh@gmail.com-20160417164249-fa49ookn58d9py72
Page headers now hide while scrolling search results and favorites

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        id: standardHeader
62
62
 
63
63
        title: i18n.tr("Search")
 
64
        flickable: typeSections.selectedIndex !== 2 ? mainLoader.item.flickable : null
64
65
 
65
66
        trailingActionBar.actions: Action {
66
67
            id: actionButton
96
97
 
97
98
    Loader {
98
99
        id: mainLoader
99
 
        anchors { top: standardHeader.bottom; left: parent.left; right: parent.right; bottom: parent.bottom; margins: units.gu(2); bottomMargin: units.gu(0) }
 
100
        anchors { top: typeSections.selectedIndex !== 2 ? parent.top : standardHeader.bottom; left: parent.left; right: parent.right; bottom: parent.bottom }
100
101
        source: {
101
102
            if (typeSections.selectedIndex === 0) {
102
103
                return Qt.resolvedUrl("Location.qml")