~osomon/webbrowser-app/bottom-edge

« back to all changes in this revision

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

  • Committer: Olivier Tilloy
  • Date: 2015-03-20 11:58:01 UTC
  • Revision ID: olivier.tilloy@canonical.com-20150320115801-ph841ti1fmupe00u
Hide invisible delegates, to limit overdraw.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                readonly property bool needsInstance: (index >= 0) && ((flickable.contentY + flickable.height + delegateHeight / 2) >= (index * delegateHeight))
87
87
                sourceComponent: needsInstance ? tabPreviewComponent : undefined
88
88
 
 
89
                visible: flickable.contentY < ((index + 1) * delegateHeight)
 
90
 
89
91
                Component {
90
92
                    id: tabPreviewComponent
91
93