---
title: "ExtJS的TabPanel在FF中重复加载Flash的解决方案"
author: "蒋兆欣"
date: "2011-09-10T17:39:53Z"
tags: []
categories: ["Web前端"]
slug: "extjs-tabpanel-ff-flash"
draft: false
lastmod: "2011-09-12T13:11:59Z"
id: 1169883
url: "https://2o12.iteye.com/blog/1169883"
---

这种问题只出现在FF上，在IE下是没有问题的，我一直没时间去搞，最后在国外的论坛找到了答案，

    [访问该论坛的关于此话题的帖子](http://www.sencha.com/forum/showthread.php?7837-Flash-movie-reloading-on-tab-switching&s=90764626034ae4d57904705a6d777346)  ，答案见7#和8#

   贴下代码就解决问题了，只是一句话而已！好多人啰嗦一大堆

```
		var southPanel = new Ext.TabPanel({
            region: 'south',
            activeTab: 0,
            id: 'center-south-panel',
            monitorResize: true,
            autoDestroy:true,
            layoutOnTabChange : true, 
            defaults:( {
            	autoScroll: true,
            	style:{position:'absolute'},  //这一句加上就木问题了
            	hideMode:'visibility'
            	}) ,
            split: true,
            height: ((document.body.clientHeight - 100) * 0.5),
            items:[this.createSouthManagePanel(), 
                   Home.ux.topo.createGraphViewPanel(),
                   Home.ux.gis.createGisMapPanel(),
                   Home.ux.design.createDesignPagePanel()]
        });
```