PDA

View Full Version : Disable TabItem content refresh on selection



gaspo100
26 Apr 2010, 7:07 PM
I have a TabPanel showing help pages in multiple tabs.

The problem I have is then when flipping between the tabs the content of each tab is refreshed and thus loosing the previous scroll position. Some of the tabs show YouTube video clips and when these tabs are selected the video is reloaded and starts playing from the beginning, loosing previous playback/pause position.

Is it possible to somehow disable tab refresh when they are selected?

sven
27 Apr 2010, 2:32 AM
The tab does not refresh. I guess its a problem in FF?

Simple chang the hidemode of the tabitems to HideMode.OFFSETS

gaspo100
29 Apr 2010, 4:51 AM
Thanks Sven. Setting HideMode to OFFSETS on TabItems helped.

However, in FF the flash component is still re-initialized. All other browsers seem to work fine with flash.
Is there a specific work around for FF not to init the flash component when TabItem gets focused?