Opened 16 years ago
Closed 15 years ago
#1867 closed defect (fixed)
Content/link panes in tab container preloads even on preload=false
Reported by: | Owned by: | koranteng | |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Dijit | Version: | 0.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
All remotely loaded content/link panes in a tab container download their content even if preload is set to false (default). Now the only way to delay loading is to set preload=false, AND explicitly hide all non-selected tabs at construction (style="display:none"). I think this should just be controlled by the preload property of content/link panes.
Change History (4)
comment:1 Changed 16 years ago by
Milestone: | → 0.7 |
---|
comment:3 Changed 15 years ago by
Component: | Widgets → Dijit |
---|---|
Owner: | changed from bill to koranteng |
I think with the new startup()/layout() architecture, this can work if we just do the load when layout() is called, rather than in postCreate(). I don't really want to support a preload option; maybe it's best just to never preload.
comment:4 Changed 15 years ago by
Milestone: | 1.0 → 0.9 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
OK, after Fredrik's fixes to ContentPane? this is working.
Right, this is a duplicate of #1573 and (at least for now) you just need to set display: none. The problem is that the ContentPane? doesn't know that it's a TabContainer? child (and being hidden) until after it finishes initializing.