ExtJS Tablepanel Height Adaptive related issues

Source: Internet
Author: User

ExtJS Tablepanel Height Adaptive problem

The project in order to give customers a better function switching experience, thinking of using ExtJS TabPanel

When TabPanel is used on the page, the height of the iframe of the newly opened tab page always appears without filling the page

He was forced to assign a height to the TabPanel in order to achieve an adaptive effect.

Document. body. clientwidth

Document. body. clientheight

The code is as follows:

ext.onready (function () {Ext.blank_image_url = ' script/extjs/resources/images/default/ S.gif '; Ext.QuickTips.init (); scrollermenu = new Ext.ux.TabScrollerMenu ({maxtext:15,pagesize:5});p anel = new Ext.tabpanel ({AP PlyTo:document.body, Enabletabscroll:true, activetab:0, Resizetabs:true, Layoutontabchange:tru E, height:document.body.clientHeight, plugins:[' Tabclosemenu ', Scrollermenu], defaults: {AUTOSCROLL:TR UE}, items:[{ID: ' Testpanel ', iconcls: ' New-tab ', title: ' Home ', HTML: ' & Lt;iframe id= "Frmmain" name= "frmmain" scrolling= "Auto" frameborder= "0" width= "100%" height= "100%" src= "yz/        Tohandleelectrondocumentlist.action "></iframe>", Closable:false, Autoscroll:true} ]    });});

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.