Merge lp:~ajalkane/ubuntu-filemanager-app/folderpage-size-adjustment into lp:ubuntu-filemanager-app

Proposed by Arto Jalkanen
Status: Merged
Approved by: Michael Spencer
Approved revision: 51
Merged at revision: 50
Proposed branch: lp:~ajalkane/ubuntu-filemanager-app/folderpage-size-adjustment
Merge into: lp:ubuntu-filemanager-app
Diff against target: 25 lines (+12/-3)
1 file modified
FolderListPage.qml (+12/-3)
To merge this branch: bzr merge lp:~ajalkane/ubuntu-filemanager-app/folderpage-size-adjustment
Reviewer Review Type Date Requested Status
Michael Spencer Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+175699@code.launchpad.net

Commit message

Readjusted file listing view height for new SDK changes

Description of the change

Readjusted file listing view height for new SDK changes.

With these changes the main view fills perfectly (on Desktop at least) the usable space without going over toolbar nor leaving extra space.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Spencer (ibelieve) wrote :

Nice (if I can say nice for a hack around a bug).

Neither of those bugs you list really seem related to the problem. I've filed a separate bug (https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1202881), could you change the links to point to the new bug?

review: Needs Fixing
Revision history for this message
Arto Jalkanen (ajalkane) wrote :

Sure thing, I readjusted the comments!

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michael Spencer (ibelieve) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'FolderListPage.qml'
2--- FolderListPage.qml 2013-07-11 22:47:16 +0000
3+++ FolderListPage.qml 2013-07-19 04:04:26 +0000
4@@ -373,9 +373,18 @@
5 // IMPROVE: this should work (?), but it doesn't. Height is undefined. Anyway in previous
6 // SDK version the parent size was properly initialized. Now the size of toolbar is not taken into
7 // account and apparently you can't even query toolbar's height.
8- // anchors.bottomMargin: toolbar.height
9- // So hard-code it. Not nice at all:
10- anchors.bottomMargin: units.gu(8)
11+ // anchors.bottomMargin: toolbar.height
12+ // Now in newer SDK (raring 19.07.2013) locked&opened toolbar is taken into
13+ // account in some fashion, but the extra space left to the bottom without this
14+ // bottomMargin definition seems to be exactly what is the height of Header's gray
15+ // separator bar. This ugly workaround seems to give correct height for view at least on desktop.
16+ // Bug report on this:
17+ // https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1202881
18+ // This bug report also affects this, as if the toolbar is hidden by default
19+ // then there is no problem:
20+ // https://bugs.launchpad.net/ubuntu-filemanager-app/+bug/1198861
21+ // Hard-code it for now. Not nice at all:
22+ anchors.bottomMargin: units.gu(-2)
23 }
24
25 // Errors from model

Subscribers

People subscribed via source and target branches