[Tabs/PageStack/Toolbar] Using a combination of Tabs and PageStack breaks Toolbar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Opinion
|
Undecided
|
Unassigned | ||
Ubuntu UX |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Using a combination of Tabs and PageStack breaks the Toolbar. To reproduce follow those steps:
* Take the code example below and run it
* Pull up the toolbar => You'll see toolbar 1 in Page 1 in Tab 1, which matches the code below
* switch to tab 2 => You'll see toolbar 2 in Page 2 in Tab 2, still ok
* switch back to tab 1 => You'll see toolbar 2 in Page 1 in Tab 1
Switching back to a page-only tab correctly brings up the according toolbar. It happens only the if a PageStack is embedded into a Tab.
import Ubuntu.Components 0.1
import QtQuick 2.0
MainView {
width: units.gu(48)
height: units.gu(60)
Tabs {
Tab {
title: "Tab 1"
page: PageStack {
}
}
}
Tab {
title: "Tab 2"
page: Page {
}
}
Tab {
title: "Tab 3"
page: Page {
}
}
}
}
Changed in ubuntu-ux: | |
status: | Invalid → Opinion |
Changed in ubuntu-ui-toolkit: | |
status: | New → Opinion |
Changed in ubuntu-ux: | |
status: | Opinion → Invalid |
importance: | Undecided → Wishlist |
I think this is a duplicate of https:/ /bugs.launchpad .net/ubuntu- ui-toolkit/ +bug/1202626. I believe the design decision was to not combine pagestacks and tabs.