Well, I didn't mean to send the class.
I has to be a simple problem of a parent not resizing your custom component because either it thinks it's not percentage or it is satisfied with what your custom component's measured width and height is. If this is the case, then the parent won't call updateDisplayList() or measure() on your custom Canvas. Peace, Mike On 1/24/07, Danko Kozar <[EMAIL PROTECTED]> wrote:
Hmm... Now I see that it solved only the scrollbar appearance problem. The measure() and updateDisplayList() methods still don't fire when decreasing the browser size, only when increasing. My component is a Canvas (extended) and parent container is Canvas, too. I't weird because I have a VBox just above my component and it's resizing happens in both ways. I't the child of the same container as my component. The code is too complex to send.. First I have to wxtract it from the project.. make it simpler.. Perhaps someone knows the answer from the experience? Thx! --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Danko Kozar" <[EMAIL PROTECTED]> wrote: > > Oh, I got it: a horizontalScrollPolicy of the parent container wasn't > set to "off".. > > Sory for inconvenience... > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Danko Kozar" <danko.kozar@> > wrote: > > > > I've made a custom component (based on Canvas). When resizing a > > browser, the "updateDisplayList(unscaledWidth, unscaledHeight)" fires > > only when resizing to a greater window size. When resizing to a > smaller > > size, it doesn't fire. The scrollbar appears instead. Why? > > > > Thanks!! > > >
-- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.