Changes between Initial Version and Version 1 of Ticket #10804


Ignore:
Timestamp:
Mar 2, 2010, 2:51:52 PM (11 years ago)
Author:
bill
Comment:

Yes, Dialog was intentionally changed to initially be display:none, deferring rendering of children until they are shown, thus speeding up initial page load. (Also, if Dialog has an href it shouldn't load the href until the Dialog is shown.) Same thing happens with children TabContainer, AccordionContainer, etc. It's a tradeoff between initial page load time and delays/glitches when displaying new sections of the page.

The grid code was changed so that it acts correctly as a layout widget, specifically that Grid.resize() will layout properly. I assume the issue you are seeing is just a momentary glitch, not a permanent layout problem?

So, I can understand you wanting the old behavior although I wouldn't call this a regression.

Anyway, I need to know more about your use of Dialog. My question is whether the problem you are having is really with waiting for the grid to render, or is it waiting for the data store to download data? I.e. are you using a client side store such as ItemFileReadStore (and if so does it have a URL parameter), or are you using a server store like JsonRestStore?

Also, are the contents of your dialog itself specified via an href or inlined?

I think I could do some stuff to defer the Dialog displaying until it finishes loading but I need to know the exact problem you are having.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10804

    • Property Owner anonymous deleted
    • Property Component changed from General to Dijit
    • Property Summary changed from [Regression] dijit.Dialog in 1.4 is unable preload internal Grids to Dialog: unable to preload internal Grids (>=1.4)
  • Ticket #10804 – Description

    initial v1  
    1 dijit.Dialog on 1.3 would hide the dialog by moving it off screen and setting the visibility to "hidden".  This allowed complex internal widgets (such as DataGrids) to preload out of sight.
     1dijit.Dialog on 1.3 would hide the dialog by moving it off screen and setting the visibility to "hidden".  This allowed complex internal widgets (such as !DataGrids) to preload out of sight.
    22
    33In 1.4, for some reason the postCreate method now sets display to "none".  This prevents widgets from being able to be loaded off screen.  Grids initialize to a height of 0, for example.