On 11/13/15, 8:36 AM, "chris_d_k" <[email protected]> wrote:

>Hi,
>
>I have added a Standard Button (spark, no skin, ...)
>
>in one of my component and get the following error. If I add the Button
>with
>an time-offset (setTimout(addMyButton, 20)) it is working. Any ideas why?

Hard to say for sure, but one possibility is that some styles are being
loaded or defined and aren’t ready in time.  setTimeout might delay just
enough for other code to run and setup those styles.

-Alex

Reply via email to