Merge lp:~dyams/unity-2d/dash-filter-checkoptions-scrollable into lp:unity-2d

Proposed by Lohith D Shivamurthy
Status: Rejected
Rejected by: Gerry Boland
Proposed branch: lp:~dyams/unity-2d/dash-filter-checkoptions-scrollable
Merge into: lp:unity-2d
Diff against target: 11 lines (+2/-0)
1 file modified
shell/dash/FilterCheckoption.qml (+2/-0)
To merge this branch: bzr merge lp:~dyams/unity-2d/dash-filter-checkoptions-scrollable
Reviewer Review Type Date Requested Status
Gerry Boland (community) Needs Fixing
Michał Sawicz Approve
Review via email: mp+93528@code.launchpad.net

Description of the change

[Dash] Fixes scrollable filter-check-options

To post a comment you must log in.
Revision history for this message
Lohith D Shivamurthy (dyams) wrote :
Revision history for this message
Lohith D Shivamurthy (dyams) wrote :

dash-apps-sources.before.png > http://ubuntuone.com/3sWQzBFvczxUE2jJF7ET6y
dash-apps-type-after.png > http://ubuntuone.com/4S2YgvS5CPvtZacB03k1mN
dash-apps-type-before.png > http://ubuntuone.com/1G20Ojs85EpGACqfuw7EdW
dash-files&folders-after.png > http://ubuntuone.com/6Jk14WxwAP8rq8TnirlTHo
dash-files&folders-before.png > http://ubuntuone.com/7Be0PWIo1MvUN7WXvre90A

Revision history for this message
Michał Sawicz (saviq) :
review: Approve
Revision history for this message
Gerry Boland (gerboland) wrote :

This unfortunately breaks keyboard navigation of the checkboxes.

review: Needs Fixing
Revision history for this message
Lohith D Shivamurthy (dyams) wrote :

> This unfortunately breaks keyboard navigation of the checkboxes.
Grr. Its a bug in Qt it seems.
https://bugreports.qt-project.org/browse/QTBUG-17051

920. By Lohith D Shivamurthy

Workaround to stop scrolling

Revision history for this message
Gerry Boland (gerboland) wrote :

Well the real problem is that the GridViewWithSpacing vertically higher than the space allocated to it.

When you make a grid with more than one row of items, the grid has padding of size verticalSpacing after the last row. A workaround was to remove this from the height, but that causes the grid to scroll.

Solving this would also fix the issue with the Last Modified line.

I believe your fix isn't correct also in the case of keyboard navigation, as when you highlight an item in the last row, the grid will still scroll.

Revision history for this message
Gerry Boland (gerboland) wrote :

Branch abandoned, rejecting.

Unmerged revisions

920. By Lohith D Shivamurthy

Workaround to stop scrolling

919. By Lohith D Shivamurthy

[Dash] Fixes scrollable filter-check-options

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'shell/dash/FilterCheckoption.qml'
2--- shell/dash/FilterCheckoption.qml 2012-01-10 16:52:24 +0000
3+++ shell/dash/FilterCheckoption.qml 2012-02-20 06:52:19 +0000
4@@ -30,6 +30,8 @@
5 || filterView.filterModel.id == "modified" ) ? 3 : 2
6 rows: Math.ceil(count/columns)
7
8+ maximumFlickVelocity: 0.0 /* Workaround to stop scrolling */
9+
10 horizontalSpacing: 10
11 verticalSpacing: 14
12

Subscribers

People subscribed via source and target branches