Can I get some more response on these issues. Is there any support available or any documentation on design time and runtime details ?
-- Chetan Sachdev http://www.riageeks.com --- In [email protected], Jeffry Houser <j...@...> wrote: > > > By "Live Preview" you mean the design view, correct? The best answer I > can give for item 1 and 2 is that design view sucks. > > > To address item 3.. > > To resize the child components based on a size (width, height, > percentWidth, percentHeight) change in a component, I'd set a flag in > each property set method (widthChanged = true ) and run > invalidateDisplayList. Then in updateDisplayList you can resize the > size of the children to match the new size. > > I don't know if this will update properly in design view, though. I > wouldn't expect design view to be 'running' the application and > executing component lifecycle methods. > > > cksachdev wrote: > > > > Hello everybody, > > I am facing some issues in design time with my custom component. > > Please find a description below: > > > > 1. If the width or height is set in the properties panel, live preview > > is updated. If width/height is then deleted, live preview is not > > updated and a click on the "update button" of the "design view" > > interface is required. What could be the reason/solution ? > > > > 2. If the width of the component is set to a percentage (for example > > 80%), the component is resized properly. If width is then changed > > again to a lower value (for example 60%), live preview is not updated. > > If it is set to an higher value instead, it works. Strange behaviour ? > > > > 3. I want my component's child component to resize automatically. > > Like, if button has a long label, it should increase according to the > > label size. How to achieve this. If I don't invoke setActualSize > > method in child components, they are not displayed. > > > > Looking forward to a solution :) > > > > -- > > Chetan > > www.riageeks.com > > > > > > -- > Jeffry Houser, Technical Entrepreneur > Adobe Community Expert: http://tinyurl.com/684b5h > http://www.twitter.com/reboog711 | Phone: 203-379-0773 > -- > Easy to use Interface Components for Flex Developers > http://www.flextras.com?c=104 > -- > http://www.theflexshow.com > http://www.jeffryhouser.com > -- > Part of the DotComIt Brain Trust >
