You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@gunnsoft.com.au> on 2007/06/08 09:07:26 UTC

dojo dialog render issue

Hi All,

I have 2 dojo dialogs, hidden by default which have been working fine.

<div jwcid="myDialog@Dialog" hidden="ognl:true">dialog</div>

I've now added a component to the page which delays the load time for 
the page somewhat and in firefox causes a funny render issue for the 
dialogs.

The dialog's content is momentarily displayed (inline) at the bottom of 
my page, and the page's background colour is the transparent grey of the 
dialog.

It seems to be only for the short period between when the page is 
rendered and onload event is triggered. when the page is finished 
loading it goes back to normal and everything functions fine.

If I set the style of the dialog to display:none; the dialog does not 
behave properly, it does not display when dojo.html.show is called on 
it. This is because dojo caches the initial display setting when it 
first hides the component.

I've looked at the code that dojo runs in the onload event hander:

tapestry.widget.synchronizeWidgetState("myDialog", "Dialog", {"bgColor":"black","bgOpacity":0.4000000059604645}, false);
dojo.widget.byId("myDialog").hide();});

Does anyone know how to stop this behaviour and essentially render the 
compents as if they have already been registered and hidden with dojo?

Thanks, Paul.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: dojo dialog render issue

Posted by Paul Stanton <pa...@gunnsoft.com.au>.
??

Paul Stanton wrote:
> https://issues.apache.org/jira/browse/TAPESTRY-1560
>
> how's 4.1.2 coming?
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: dojo dialog render issue

Posted by Paul Stanton <pa...@gunnsoft.com.au>.
https://issues.apache.org/jira/browse/TAPESTRY-1560

how's 4.1.2 coming?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: dojo dialog render issue

Posted by Jesse Kuhnert <jk...@gmail.com>.
http://tapestry.apache.org/issue-tracking.html

On 6/8/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>
> How?
>
> Jesse Kuhnert wrote:
> > Possibly - but I might need more information (ie expected vs. actual )
> to
> > get it set up correctly.
> >
> > p.s. Can you file a jira issue for it so I remember?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: dojo dialog render issue

Posted by Paul Stanton <pa...@gunnsoft.com.au>.
How?

Jesse Kuhnert wrote:
> Possibly - but I might need more information (ie expected vs. actual ) to
> get it set up correctly.
>
> p.s. Can you file a jira issue for it so I remember?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: dojo dialog render issue

Posted by Jesse Kuhnert <jk...@gmail.com>.
Possibly - but I might need more information (ie expected vs. actual ) to
get it set up correctly.

p.s. Can you file a jira issue for it so I remember?

On 6/8/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>
> Hi All,
>
> I have 2 dojo dialogs, hidden by default which have been working fine.
>
> <div jwcid="myDialog@Dialog" hidden="ognl:true">dialog</div>
>
> I've now added a component to the page which delays the load time for
> the page somewhat and in firefox causes a funny render issue for the
> dialogs.
>
> The dialog's content is momentarily displayed (inline) at the bottom of
> my page, and the page's background colour is the transparent grey of the
> dialog.
>
> It seems to be only for the short period between when the page is
> rendered and onload event is triggered. when the page is finished
> loading it goes back to normal and everything functions fine.
>
> If I set the style of the dialog to display:none; the dialog does not
> behave properly, it does not display when dojo.html.show is called on
> it. This is because dojo caches the initial display setting when it
> first hides the component.
>
> I've looked at the code that dojo runs in the onload event hander:
>
> tapestry.widget.synchronizeWidgetState("myDialog", "Dialog",
> {"bgColor":"black","bgOpacity":0.4000000059604645}, false);
> dojo.widget.byId("myDialog").hide();});
>
> Does anyone know how to stop this behaviour and essentially render the
> compents as if they have already been registered and hidden with dojo?
>
> Thanks, Paul.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com