Re: [flexcoders] Re: Tile Extra Space
On Friday 27 Apr 2007, joshua gatcke wrote: > I haven't found a solution to this at all. Seems to only happen when > I set the width of the tile to 100%. I want the hight to fit the > content, so I can't set to a number or percent. Not even height="{ compoentName.height }" ? -- Tom Chiverton Helping to apprehensively evolve mission-critical services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Tile Extra Space
I think it works much better if you set tileHeight and tileWidth (if you know these). On 4/24/07, Alex <[EMAIL PROTECTED]> wrote: > I'm having exactly the same problem. The Tile component grows taller > than expected. It seems to allocate height for an extra row when > there's no need to do so :S > > Did you already find a solution to this? > > --- In flexcoders@yahoogroups.com, joshua gatcke <[EMAIL PROTECTED]> wrote: > > > > I am trying to use a container to layout a set of > > application icons. I have set the container to a width of > 100% > > and would like the icons to wrap to the line below if the browser > is > > smaller or resized. The problem I am having is that the icons in > my > > container are 60px tall and The container does not > fit > > the height to the content, it looks like the container is > > double or triple the icon height, even when there is no need to > wrap. > > I have no width or maxWidth etc attributes on the > container. > > This is a real pain, I just want the tile container to fit the > height > > to the content. > > > > Thanks in advance for your help > > > > Joshua Gatcke > > Design/ Development > > [EMAIL PROTECTED] > > P: 403.269.1020 > > C: 403.815.3265 > > > > > - > > http://www.LaunchCMS.com - Simple intuitive content management > > software for the web. > > > > > - > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > >
Re: [flexcoders] Re: Tile Extra Space
Okay, here's the kludge I made to make it work. It very much is a kludge, but it seems to work. I'd really like this to just work in the original component, though. package nes { import mx.containers.Tile; import flash.display.DisplayObject; public class TileExt extends Tile { public var originalHeight:Number = NaN; override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if (initialized) { if (isNaN(originalHeight)) originalHeight = height; var lastChild:DisplayObject; var thisChild:DisplayObject; var rows:int = 1; for (var i:int = 0; i < numChildren; i++) { thisChild = getChildAt(i); if (lastChild && lastChild.x > thisChild.x) rows++; lastChild = thisChild; } height = originalHeight * rows; } } } } On 4/26/07, Pan Troglodytes <[EMAIL PROTECTED]> wrote: Don't you hate it when you find someone asking your exact question but there's no answer? Even better, you find TWO people asking it. I'm having this same problem and it's frustrating. The whole point of the Tile was to manage the layout for me and flow it on the window resizing. Right now I'm experimenting with subclassing Tile and adding my own resize. If anyone has already done this, I'd love to see your solution. On 4/24/07, Alex <[EMAIL PROTECTED]> wrote: > > I'm having exactly the same problem. The Tile component grows taller > than expected. It seems to allocate height for an extra row when > there's no need to do so :S > > Did you already find a solution to this? > > --- In flexcoders@yahoogroups.com , joshua > gatcke <[EMAIL PROTECTED]> wrote: > > > > I am trying to use a container to layout a set of > > application icons. I have set the container to a width of > 100% > > and would like the icons to wrap to the line below if the browser > is > > smaller or resized. The problem I am having is that the icons in > my > > container are 60px tall and The container does not > fit > > the height to the content, it looks like the container is > > double or triple the icon height, even when there is no need to > wrap. > > I have no width or maxWidth etc attributes on the > container. > > This is a real pain, I just want the tile container to fit the > height > > to the content. > > > > Thanks in advance for your help > > > > Joshua Gatcke > > Design/ Development > > [EMAIL PROTECTED] > > P: 403.269.1020 > > C: 403.815.3265 > > -- > > > - > > http://www.LaunchCMS.com - Simple intuitive content management > > software for the web. > > -- > > > - > > > > > -- Jason -- Jason
Re: [flexcoders] Re: Tile Extra Space
Don't you hate it when you find someone asking your exact question but there's no answer? Even better, you find TWO people asking it. I'm having this same problem and it's frustrating. The whole point of the Tile was to manage the layout for me and flow it on the window resizing. Right now I'm experimenting with subclassing Tile and adding my own resize. If anyone has already done this, I'd love to see your solution. On 4/24/07, Alex <[EMAIL PROTECTED]> wrote: I'm having exactly the same problem. The Tile component grows taller than expected. It seems to allocate height for an extra row when there's no need to do so :S Did you already find a solution to this? --- In flexcoders@yahoogroups.com , joshua gatcke <[EMAIL PROTECTED]> wrote: > > I am trying to use a container to layout a set of > application icons. I have set the container to a width of 100% > and would like the icons to wrap to the line below if the browser is > smaller or resized. The problem I am having is that the icons in my > container are 60px tall and The container does not fit > the height to the content, it looks like the container is > double or triple the icon height, even when there is no need to wrap. > I have no width or maxWidth etc attributes on the container. > This is a real pain, I just want the tile container to fit the height > to the content. > > Thanks in advance for your help > > Joshua Gatcke > Design/ Development > [EMAIL PROTECTED] > P: 403.269.1020 > C: 403.815.3265 > -- > - > http://www.LaunchCMS.com - Simple intuitive content management > software for the web. > -- > - > -- Jason