Flickable anchor margins changes when you push/pop a page

Bug #1228042 reported by Nekhelesh Ramananthan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Critical
Tim Peeters
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned
Vivid
New
Undecided
Unassigned

Bug Description

Situtation:
Define a flickable inside a page with some labels, buttons and any other components inside the flickable. Notice the anchor margins of the layout. Push a page and then pop it. Notice that the anchor margins have now changed.

You can find a sample qml project with all the code necessary in the attachment below.

Steps to reproduce:
1. Open the sample project in qtcreator
2. On running it, notice the gap between the rectangle and the tab header.
3. Press the button to push a page
4. In the new page, press the button to pop the page
5. Now notice that the gap between the rectangle and the tab header is non-existent.

It is almost like the first time you open the app, the rectangle is anchored to the tab header but when you pop it, it is now anchored to the top of the application instead of the tab header.

Update 1 (18th January 2014): While further testing this bug, I noticed that if you set flickable: null inside the page, then when you push and pop a page, the bug is no longer reproducible. However if you allow page to automatically detect the flickable or set it manually, then the bug appears again. One can infer that somehow the flickable property of the page is somehow tied to this issue.

Related branches

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Tim Peeters (tpeeters)
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → High
description: updated
Revision history for this message
Arthur Mello (artmello) wrote :

We have a similar issue with gallery-app. We open a specific photo from the photos tab and when we return to the tab there is this gap between the header and the photos grid.

On the qml file attached we tried to reproduce the issue. When you click on a number you go to a new page and when you return the grid is not on the same position anymore. It is not the same behavior we have on gallery but maybe it could be related.

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: High → Critical
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/staging at revision None, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+14.10.20140502.6-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+14.10.20140502.6-0ubuntu1) utopic; urgency=low

  [ Tarmac ]
  * [ Zoltán Balogh]   * Skip tests only for powerpc   [ Christian Dywan
    ]   * Use locale format specifier in textfield_numbers. (LP:
    #1311907, #1283236, #1285958, #1124071, #1256424, #1276172,
    #1228042, #1183255, #1283212, #1168914, #1273187, #1276821,
    #1308086, #1288937, #1292601)

  [ Zoltán Balogh ]
  * [ Zoltán Balogh]   * Skip tests only for powerpc   [ Christian Dywan
    ]   * Use locale format specifier in textfield_numbers. (LP:
    #1311907, #1283236, #1285958, #1124071, #1256424, #1276172,
    #1228042, #1183255, #1283212, #1168914, #1273187, #1276821,
    #1308086, #1288937, #1292601)

  [ tpeeters ]
  * [ Zoltán Balogh]   * Skip tests only for powerpc   [ Christian Dywan
    ]   * Use locale format specifier in textfield_numbers. (LP:
    #1311907, #1283236, #1285958, #1124071, #1256424, #1276172,
    #1228042, #1183255, #1283212, #1168914, #1273187, #1276821,
    #1308086, #1288937, #1292601)
 -- Ubuntu daily release <email address hidden> Fri, 02 May 2014 16:31:41 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.