PDA

View Full Version : Panel : items position on one line



jeanrene
31 Aug 2011, 9:41 AM
Hi,

I have a panel with fixed width and height and many images inside. I wanted that all images stay on one line even if they are hidden because there are too much items for the width. My problem is that the hidden images are placed below the visible images and not next to them. How can I perform it?

Thanks

skirtle
31 Aug 2011, 9:46 AM
Are the items full-blown components or just some HTML image elements?

jeanrene
31 Aug 2011, 10:01 AM
Images are html elements. I'm using a template for adding them to my Component.

jeanrene
31 Aug 2011, 10:20 AM
I've found a solution using an absolute position and the left attribute :



tpl: '<tpl for="img"><img src="{src}" alt="{desc}" name="{name}" width="73" height="69" style="position:absolute;left:{[(xindex - 1) * 93]}px;"></tpl>',


Thanks