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
=== modified file 'FolderListPage.qml'
--- FolderListPage.qml 2013-07-11 22:47:16 +0000
+++ FolderListPage.qml 2013-07-19 04:04:26 +0000
@@ -373,9 +373,18 @@
373 // IMPROVE: this should work (?), but it doesn't. Height is undefined. Anyway in previous373 // IMPROVE: this should work (?), but it doesn't. Height is undefined. Anyway in previous
374 // SDK version the parent size was properly initialized. Now the size of toolbar is not taken into374 // SDK version the parent size was properly initialized. Now the size of toolbar is not taken into
375 // account and apparently you can't even query toolbar's height.375 // account and apparently you can't even query toolbar's height.
376 // anchors.bottomMargin: toolbar.height376 // anchors.bottomMargin: toolbar.height
377 // So hard-code it. Not nice at all:377 // Now in newer SDK (raring 19.07.2013) locked&opened toolbar is taken into
378 anchors.bottomMargin: units.gu(8)378 // account in some fashion, but the extra space left to the bottom without this
379 // bottomMargin definition seems to be exactly what is the height of Header's gray
380 // separator bar. This ugly workaround seems to give correct height for view at least on desktop.
381 // Bug report on this:
382 // https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1202881
383 // This bug report also affects this, as if the toolbar is hidden by default
384 // then there is no problem:
385 // https://bugs.launchpad.net/ubuntu-filemanager-app/+bug/1198861
386 // Hard-code it for now. Not nice at all:
387 anchors.bottomMargin: units.gu(-2)
379 }388 }
380389
381 // Errors from model390 // Errors from model

Subscribers

People subscribed via source and target branches