~fboucault/ubuntu-ui-toolkit/fix_tabs_ordering

« back to all changes in this revision

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

  • Committer: Florian Boucault
  • Date: 2013-11-22 14:49:12 UTC
  • mfrom: (848 trunk)
  • mto: This revision was merged to the branch mainline in revision 858.
  • Revision ID: florian.boucault@canonical.com-20131122144912-vmv2mi3t9o2rd2dl
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
                bottom: parent.bottom
249
249
            }
250
250
            // only clip when necessary
 
251
            // ListView headers may be positioned at the top, independent from
 
252
            // flickable.contentY, so do not clip depending on activePage.flickable.contentY.
251
253
            clip: headerItem.bottomY > 0 && activePage && activePage.flickable
252
 
                  && -activePage.flickable.contentY < headerItem.bottomY
253
254
 
254
255
            property Page activePage: isPage(mainView.activeLeafNode) ? mainView.activeLeafNode : null
255
256
 
256
257
            function isPage(item) {
257
 
                return item.hasOwnProperty("__isPageTreeNode") && item.__isPageTreeNode &&
 
258
                return item && item.hasOwnProperty("__isPageTreeNode") && item.__isPageTreeNode &&
258
259
                        item.hasOwnProperty("title") && item.hasOwnProperty("tools");
259
260
            }
260
261