Tab header collides with pagestack header while using background gradients in mainview

Bug #1209403 reported by Nekhelesh Ramananthan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
Medium
Unassigned
Ubuntu Shorts App
Fix Released
High
Unassigned
Ubuntu UI Toolkit
Fix Released
High
Tim Peeters
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

As of a recent SDK update (do not know the exact rev no), the clock tab header is visible even while viewing the page header pushed into a pagestack. This can be seen more clearly in the screenshot attached below. On further testing, I was able to identify that the background gradient is the culprit behind the issue. Here below is the code copied exactly from the API examples with one difference being the background gradient support added in which case you will notice the bug. Removing the background gradient fixes the issue but is not an option.

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    id: mainView
    width: units.gu(38)
    height: units.gu(50)

    headerColor: "#57365E"
    backgroundColor: "#A55263"
    footerColor: "#D75669"

    PageStack {
        id: pageStack
        Component.onCompleted: push(tabs)

        Tabs {
            id: tabs
            Tab {
                title: "Tab 1"
                page: Page {
                    Button {
                        anchors.centerIn: parent
                        onClicked: pageStack.push(page3)
                        text: "Press"
                    }
                }
            }
            Tab {
                title: "Tab 2"
                page: Page {
                    Label {
                        anchors.centerIn: parent
                        text: "Use header to navigate between tabs"
                    }
                }
            }
        }
        Page {
            id: page3
            visible: false
            title: "Page on stack"
            Label {
                anchors.centerIn: parent
                text: "Press back to return to the tabs"
            }
        }
    }
}

Tags: header tabs

Related branches

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :
summary: - Clock tab header collides with pagestack header
+ Tab header collides with pagestack header
description: updated
description: updated
summary: - Tab header collides with pagestack header
+ Tab header collides with pagestack header while using background
+ gradients in mainview
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Changed in ubuntu-rssreader-app:
status: New → Confirmed
Changed in ubuntu-clock-app:
milestone: none → usable-state
Joey Chan (qqworini)
Changed in ubuntu-rssreader-app:
importance: Undecided → High
Revision history for this message
Joey Chan (qqworini) wrote :

same header issue in RSS Reader app

Revision history for this message
Zsombor Egri (zsombi) wrote :

The header content from Tabs is not hidden when the PageStack changes it. When gradient background is set, the Tabs header is even active, so you can even change tabs in the background.

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Tim Peeters (tpeeters)
importance: Undecided → High
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
Revision history for this message
Tim Peeters (tpeeters) wrote :

Which version of the UITK are you using? I use 0.1.46+13.10.20130731-0ubuntu1 and it works fine. I think it was fixed in r670.

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

Ok, with the latest version of UITK trunk the bug is present. So probably it broke with r670

Tim Peeters (tpeeters)
tags: added: header tabs
Revision history for this message
Tim Peeters (tpeeters) wrote :

Fix committed in attached branch. Feel free to test it with your apps :)

Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ui-toolkit at revision None, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
ubuntu-ui-toolkit (0.1.46+13.10.20130815.1-0ubuntu1) saucy; urgency=low

  [ Leo Arias ]
  * Added a safeguard to prevent the tabs autopilot emulator to loop for
    ever. (LP: #1211619)

  [ tpeeters ]
  * Fix bug 1209403 where Tabs header does not become invisible when
    another page is pushed on the PageStack and a gradient background is
    used. (LP: #1209403)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 695
 -- Ubuntu daily release <email address hidden> Thu, 15 Aug 2013 06:33:50 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Zoltan Balogh (bzoltan)
Changed in ubuntu-clock-app:
status: Confirmed → Fix Released
Changed in ubuntu-rssreader-app:
status: Confirmed → Fix Released
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
Revision history for this message
Joey Chan (qqworini) wrote :

Issue fixed, thanks Tim :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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