[layouts] layout change overwrites properties that need not change

Bug #1246930 reported by Gerry Boland
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Confirmed
Wishlist
Zsombor Egri
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Wishlist
Zsombor Egri

Bug Description

Try this example (courtesy of nik90 on Freenode):

http://paste.ubuntu.com/6338400/

When you resize window to be wider than 50GU, the buttons become invisible. This is a workaround:
http://pastebin.ubuntu.com/6338432/
but it's not a good one.

The height & width properties of the Buttons are not being preserved on layout change.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Thanks Gerry for reporting this bug. I (nik90) at first thought that I was perhaps doing something wrong. But it turns out that the button sizes are not preserved as mentioned above. If the Layouts requires the explicit setting of size and position of an item, it should be mentioned more clearly in the docs. Otherwise it is rather puzzling why objects just disappear when switching to a new layout.

Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Revision history for this message
Zsombor Egri (zsombi) wrote :

Items laid out in the ItemLayout are anchor.filled to the ItemLayout itself. Remember when we discussed about this when reviewing the Layouts. So, ItemLayout must specify a size. WAD - works as designed.

Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
tags: added: convergence
Tim Peeters (tpeeters)
tags: added: layouts
Revision history for this message
Zsombor Egri (zsombi) wrote :

We can have a property in ItemLayout which could drive the sizing of the hosted element. Hence marked as wish list.

Changed in ubuntu-ui-toolkit:
importance: Undecided → Wishlist
milestone: none → june-2014
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: june-2014 → september-2014
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit:
milestone: september-2014 → 11.07
milestone: 11.07 → 11.21
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → Wishlist
status: New → Confirmed
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.