on xenial help sign in
Use some more memory for scopes
65e6862Albert Astals
qml/Dash/GenericScopeView.qml+8−1
@@ -305,6 +305,10 @@ FocusScope {
305 onHeightChanged: rendererLoader.updateDelegateCreationRange();
305 onHeightChanged: rendererLoader.updateDelegateCreationRange();
306 onContentHeightChanged: rendererLoader.updateDelegateCreationRange();
306 onContentHeightChanged: rendererLoader.updateDelegateCreationRange();
307 }
307 }
308+ Connections {
309+ target: scopeView
310+ onIsCurrentChanged: rendererLoader.updateDelegateCreationRange();
311+ }
308
312
309 function updateDelegateCreationRange() {
313 function updateDelegateCreationRange() {
310 if (categoryView.moving) {
314 if (categoryView.moving) {
@@ -321,7 +325,10 @@ FocusScope {
321 if (item && item.hasOwnProperty("displayMarginBeginning")) {
325 if (item && item.hasOwnProperty("displayMarginBeginning")) {
322 // TODO do we need item.originY here, test 1300302 once we have a silo
326 // TODO do we need item.originY here, test 1300302 once we have a silo
323 // and we can run it on the phone
327 // and we can run it on the phone
328+ if (scopeView.isCurrent) {
329+ item.displayMarginBeginning = 1073741823;
330+ item.displayMarginEnd = 1073741823;
324− if (baseItem.y + baseItem.height <= 0) {
331+ } else if (baseItem.y + baseItem.height <= 0) {
325 // Not visible (item at top of the list viewport)
332 // Not visible (item at top of the list viewport)
326 item.displayMarginBeginning = -baseItem.height;
333 item.displayMarginBeginning = -baseItem.height;
327 item.displayMarginEnd = 0;
334 item.displayMarginEnd = 0;
qml/Dash/ScopeListView.qml+1
@@ -20,4 +20,5 @@ import Dash 0.1
20ListViewWithPageHeader {
20ListViewWithPageHeader {
21 maximumFlickVelocity: height * 10
21 maximumFlickVelocity: height * 10
22 flickDeceleration: height * 2
22 flickDeceleration: height * 2
23+ cacheBuffer: Number.MAX_VALUE
23}
24}