on xenial help sign in
"Document" 1073741823
commitb0c298b0565cc2f67b389346551469a48f14a4e0 authorAlbert Astals <albert.astals@canonical.com> dateMon 22 Sep 2014, 16:24 (12 years ago) parente1bd76e
2 files changed+4
qml/Dash/DashContent.qml+2 qml/Dash/GenericScopeView.qml+2
qml/Dash/DashContent.qml+2
@@ -111,6 +111,8 @@ Item {
111111 highlightMoveDuration: 250
112112 highlightRangeMode: ListView.StrictlyEnforceRange
113113 // TODO Investigate if we can switch to a smaller cache buffer when/if UbuntuShape gets more performant
114+ // 1073741823 is s^30 -1. A quite big number so that you have "infinite" cache, but not so
115+ // big so that if you add if with itself you're outside the 2^31 int range
114116 cacheBuffer: 1073741823
115117 onMovementStarted: currentItem.item.showHeader();
116118 clip: parent.x != 0
qml/Dash/GenericScopeView.qml+2
@@ -388,6 +388,8 @@ FocusScope {
388388 // TODO do we need item.originY here, test 1300302 once we have a silo
389389 // and we can run it on the phone
390390 if (scopeView.isCurrent) {
391+ // 1073741823 is s^30 -1. A quite big number so that you have "infinite" display margin, but not so
392+ // big so that if you add if with itself you're outside the 2^31 int range
391393 item.displayMarginBeginning = 1073741823;
392394 item.displayMarginEnd = 1073741823;
393395 } else if (baseItem.y + baseItem.height <= 0) {