[Seaside] CSS style not applied until reload

Julian Fitzell jfitzell at gmail.com
Mon Apr 12 23:14:32 UTC 2010


You got it! (well done)

On Tue, Apr 13, 2010 at 12:00 AM, Mortensen Sigrid E. <
sigrid at selfhelpsoftware.com> wrote:

> Never mind.  (I knew as soon as I sent the message I'd figure it out!)
>
> It has to do with how I'm dynamically adding child components to the parent
> component.  At the time the #style method is called, the child I've added
> isn't in the children collection, so the #style method isn't called for that
> child.  Then I add the component, and it's in the collection, but the style
> method isn't called again until I refresh the page.
>
> Tricky.
>
> -- S.
>
>
> On Apr 12, 2010, at 6:50 PM, Mortensen Sigrid E. wrote:
>
> > Hi All,
> >
> > Any idea why a style would not be applied to a component until the page
> is reloaded?
> >
> > When I first click on an anchor that shows the component, the style is
> not applied.  If I click the reload button on the browser, the style shows
> up.  It was impossible to figure out what was going on by toggling halos,
> because that reloads the page, but I can see it clearly in Firebug.  When
> the component is first rendered, firebug shows no style directly associated
> with that component (it only shows a style inherited from the containing
> div), but if I reload the page, it's there.
> >
> > This is on a div that's buried deep within another div, in a form, in a
> div, etc., in td in a tr of a tbody, etc.
> >
> > I am using #style methods, which I realize is no longer the recommended
> procedure, but it has always worked up until now.
> >
> > Thanks in advance for any insights.
> > -- Sigrid.
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100413/cb23c25b/attachment.htm


More information about the seaside mailing list