PDA

View Full Version : EXTJS 4.1.1. TabPanel-problem on Firefox: iframes reloads when switching tabs



nexSencha
10 Sep 2014, 8:16 AM
I've got a problem with PDF's in the TabPanel (only on Firefox). They are reloading everytime I switch tabs. The PDF is in a iframe.


Because of it the user can not compare two PDF files. When you click a tab with a PDF it loads 10 seconds, then you switch to a second tab and it also loads 10 seconds and so on....


I know this problem with Firefox has been around for years (which relates IFRAME, OBJECT, EMBED elements). It cannot be that there is no solution for this problem.

However, I have not found any for Extjs4 yet.


It would be great if someone could help me with it.

slemmon
1 Oct 2014, 11:32 PM
Hi,

I'm not familiar with that issue, so this is a stab in the dark, but you might try setting the tabpanel's child items' hideMode to offsets or visibility and test:
http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.panel.Panel-cfg-hideMode

nexSencha
2 Oct 2014, 6:21 AM
Thanks. I have solved the issue.

with following child's config settings:


...
style:{position:'absolute'},
hideMode:'visibility',
...