Merge lp:~ahayzen/music-app/cardview-fix-number-columns-zero into lp:music-app/remix
Status: | Merged |
---|---|
Approved by: | Victor Thompson |
Approved revision: | 748 |
Merged at revision: | 748 |
Proposed branch: | lp:~ahayzen/music-app/cardview-fix-number-columns-zero |
Merge into: | lp:music-app/remix |
Diff against target: |
26 lines (+2/-3) 2 files modified
common/CardView.qml (+1/-1) common/ColumnFlow.qml (+1/-2) |
To merge this branch: | bzr merge lp:~ahayzen/music-app/cardview-fix-number-columns-zero |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Victor Thompson | Approve | ||
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Review via email: mp+242582@code.launchpad.net |
Commit message
* Fix to prevent the number of columns dropping to 0 causing unexpected behaviour
Description of the change
* Fix to prevent the number of columns dropping to 0 causing unexpected behaviour
Note this only affects desktop.
On trunk if you resize the cardview so that the width is smaller than the target width for 1 item (usually ~15GU for music) the number of columns can be evaluated to zero causing strange behaviour when the window is then expanded again (eg two layers of cards appearing in the first column).
TESTING:
1) Start the app and ensure you are on a tab with the cardview
2) Resize the window of the application so that the width is as small as possible
3) Resize the window so that it is back to its original width
4) Confirm no cards are overlapping
PASSED: Continuous integration, rev:748 91.189. 93.70:8080/ job/music- app-ci/ 1165/ 91.189. 93.70:8080/ job/generic- mediumtests- vivid/338 91.189. 93.70:8080/ job/generic- mediumtests- vivid/338/ artifact/ work/output/ *zip*/output. zip 91.189. 93.70:8080/ job/music- app-vivid- amd64-ci/ 17
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/music- app-ci/ 1165/rebuild
http://