Opened 11 years ago

Closed 11 years ago

#8172 closed enhancement (wontfix)

StackContainer: add in option for prerendering panes

Reported by: Nathan Toone Owned by: Nathan Toone
Priority: high Milestone: tbd
Component: Dijit Version: 1.2.1
Keywords: Cc:
Blocked By: Blocking:

Description

an attribute of "prerender" would be helpful for rendering all child panes offscreen (using visibility:hidden instead of display:none).

The default would be false - which is the current behavior.

Attachments (1)

8172_contentPanePrerender.patch (5.7 KB) - added by Nathan Toone 11 years ago.
Patch to add prerendering to stack container

Download all attachments as: .zip

Change History (5)

comment:1 Changed 11 years ago by Adam Peller

rather than branch the code, can we just make this the default? Any advantages to the display:none approach?

Changed 11 years ago by Nathan Toone

Patch to add prerendering to stack container

comment:2 Changed 11 years ago by bill

Resolution: duplicate
Status: newclosed

Yup, this issue is already documented in #5672, but thanks for the patch.

(As peller suggested idea is to just make visbility:hidden the default)

comment:3 Changed 11 years ago by bill

Milestone: 1.3tbd
Resolution: duplicate
Status: closedreopened
Summary: dijit.layout.StackContainer: add in option for prerendering panesStackContainer: add in option for prerendering panes

Oh I misunderstood this ticket... the goal wasn't to fix mis-layouts that occur due to display:none... it's to eliminate delay when switching between tabs by pre-rendering all the tabs. And it applies to any kind of tab, not just a ContentPane with multiple layout widgets inside of it.

Of course, the downside of this is that the initial page load is longer.

comment:4 Changed 11 years ago by bill

Resolution: wontfix
Status: reopenedclosed

Due to the IE6 problems with visibility:hidden thing, I don't want to add this in as an actual option. It's something we can't support well so I don't want to go down that slope.

So, I'm going to close this ticket for now, listing that as a workaround.

Note that the StackContainer/TabContainer code has many places where it just resizes the selected pane... those would all need to be changed to resize every pane.

Note: See TracTickets for help on using tickets.