Merge lp://staging/~tpeeters/ubuntu-ui-toolkit/tab-page-loader into lp://staging/ubuntu-ui-toolkit/staging

Proposed by Tim Peeters
Status: Merged
Approved by: Cris Dywan
Approved revision: 1433
Merged at revision: 1419
Proposed branch: lp://staging/~tpeeters/ubuntu-ui-toolkit/tab-page-loader
Merge into: lp://staging/ubuntu-ui-toolkit/staging
Diff against target: 143 lines (+116/-1)
3 files modified
modules/Ubuntu/Components/Page.qdoc (+6/-0)
modules/Ubuntu/Components/Page10.qml (+1/-1)
tests/unit_x11/tst_components/tst_page_size.qml (+109/-0)
To merge this branch: bzr merge lp://staging/~tpeeters/ubuntu-ui-toolkit/tab-page-loader
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Cris Dywan Approve
Review via email: mp+250905@code.staging.launchpad.net

Commit message

Fix UITK gallery content page width.

To post a comment you must log in.
Revision history for this message
Tim Peeters (tpeeters) wrote :

this could be fixed in 2 ways:

        anchors.right: parent.right

or:

        width: gallery.width - mainPage.width

1426. By Tim Peeters

fix for phone layout as well

Revision history for this message
Tim Peeters (tpeeters) wrote :

The above solution setting the width does not work in phone layout and would require some additional code to make it work. So setting the anchor is better.

Revision history for this message
Cris Dywan (kalikiana) wrote :

After some discussion I'm convinced what the uitk gallery is doing is indeed bad abuse of API. But please provide a test case for the correct behavior of a Loader with no size set.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1427. By Tim Peeters

document Page width/height/anchors

1428. By Tim Peeters

update Page docs

1429. By Tim Peeters

remove deprecated test

1430. By Tim Peeters

working on the test

1431. By Tim Peeters

don't break our gallery

1432. By Tim Peeters

update docs

1433. By Tim Peeters

update test

Revision history for this message
Tim Peeters (tpeeters) wrote :

I agree what the gallery is doing is not very clean.

However, with this update:
25 - width: parentNode ? parentNode.width : undefined
26 + width: parentNode ? parentNode.width - page.x : undefined
I no longer need to update the gallery.

Also, a unit test and documentation in Page.qdoc were added.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

Looks nice!

Not sure about AP, there seem to be some unrelated failures and a possible regression in staging.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches