So I have uncovered some bugs that you may want to squash in the
TileHorizontalLayout.  I decided to go with the jewel layouts as you
suggested, but I have uncovered several problems that I think need to be
addressed.  Due to the two separate problems, I am going to spread it over
two posts in this thread.  This is the first post and has to do with the
TileHorizontalLayout.  After setting up my layout, I noticed that the tiles
were changing shape when I resized the browser, which goofs up my
itemrenderer.  So I looked at the Tour De Jewel Layouts and figured out that
it was doing the same thing in your setup.  BUTTT, only if you set the
requestedColumnCount AFTER setting the rowHeight and columnWidth.  If you
set the requestedColumnCount before setting the rowHeight and coumnWidth,
everything works as planned:

tile.requestedColumnCount = someCount;
tile.columnWidth = someWidth;
tile.rowHeight = someHeight;
List.addbead(tile);

<http://apache-royale-users.20374.n8.nabble.com/file/t184/Screenshot_%2877%29.png>
 

Changing the browser size keeps the aspect ratio of the content as it
should:

<http://apache-royale-users.20374.n8.nabble.com/file/t184/Screenshot_%2878%29.png>
 

But if you set the requestedCoumnCount after declaring the rowHeight and
columnWidth, then as you resize the browser, the content distorts in shape:

tile.columnWidth = someWidth;
tile.rowHeight = someHeight;
tile.requestedColumnCount = someCount;
List.addbead(tile);

<http://apache-royale-users.20374.n8.nabble.com/file/t184/Screenshot_%2879%29.png>
 

rescaling the browser then distorts the content aspect ratio:

<http://apache-royale-users.20374.n8.nabble.com/file/t184/Screenshot_%2880%29.png>
 


This one was hard to figure out, sometimes the images distorted, sometimes
they remained fixed.  I think you need to identify why the order of the
requestedColumnCount, rowHeight, and columWidth would affect the scaling of
the content inside the layout.




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Reply via email to