Mantis - tweak
Viewing Issue Advanced Details
2663 Any minor always 02-03-06 12:00 02-03-06 14:20
bernd  
 
normal  
new  
open  
none    
none  
0002663: shrinkWrap does not wrap
using shrinkWrap option resizes the player to the size of the hull of its children, but the player isn't in the expected position. It's correct when a tableLayout is added, but that is not needed everytime.
the player should change its position/extent/borders to include the embedded player graphically too.
Example:
| a |
a := CRectanglePlayer open.
a hResizing: #shrinkWrap; vResizing: #shrinkWrap.
a add: (CRoundRectPlayer new topLeft: 10@10;yourself).
a add: (CRoundRectPlayer new topLeft: 60@60;yourself).

Only with a player with topleft at: 0@0 it looks correct(no players with negative topleft values!).

May be the pivot/position change break this or has it never act in the way I expect it.

Notes
(0003694)
bernd   
02-03-06 14:20   
If no layout is set the current behaviour may be okay. But when a CSimpleLayout is used as the player layout, it should wrap around its children.