ExtJS let the covered form appear at the top and resolve the method "Go" that the Ext.messagebox prompt box is TabPanel overwritten

Source: Internet
Author: User

ExtJS let the covered form appear at the top and resolve the Ext.messagebox prompt box is TabPanel overwritten by arthinking posted 5 year ago |Javascript |  No Comments | Be onlookers 14,752 views+
First, how to let ExtJS pop-up message box Ext.messagebox or create Ext.window display at the front:

Here is the JS code that shows a window:

var formpanel = Mistab1.createaddformpanel () var addwin = new Ext.window ({      title: "Add Product category",     pagex:50,    Pagey:50,    width:600,      height:200,      plain:true,     resizable:false,          collapsible:true       , Closeaction: ' Close ',      closable:true,    modal: ' true ',      buttonalign: ' Center ',    bodystyle: ' Padding : 20px 0 0 0 ",    alwaysontop:true,    items: [Formpanel],      buttons: [{             text:" Add ",             minwidth:70,< C18/>handler:function () {                           }         }, {             text: "Close",             minwidth:70,             handler:function () {            }         }]    }); Addwin.show ();

Effect

To make the window appear first, just create a window that Windowgroup management creates, and you need to add the following code:

var tab1groupmgr = new Ext.windowgroup ();  front window tab1groupmgr.zseed=99999;  var Addwin = new Ext.window ({      title: "Add Product category",     pagex:50,    pagey:50,    width:600,      height:200,      Plain:true,    manager:tab1groupmgr,...

Second, ExtJS pop-up message box Ext.messagebox or create a Ext.window is Ext.tabpanel overridden by the workaround

This may occur because TabPanel has set the Floating:true configuration item.

Floating:boolean
True to float this panel (absolute positioning with auto-fill and projection), false ...
True to float this panel (absolute positioning with autofill and projection), false to show "nearest" to the location where it is rendered (false by default). True to float the This Panel (absolute position it with automatic shimming and shadow), false to display it-inline where it is Rendered (defaults to false).

The workaround is to remove the set of floationg:true configuration items:

var tabPanel = new Ext.tabpanel ({region: ' center ', activetab:0,shadow:true,floating:true,    //Remove the configuration item items: [{title : ' Welcome page '}]);
In addition to the article has special instructions, are it house original articles, reproduced please link the form to indicate the source.
This article link: http://www.itzhai.com/ extjs-form-to-be-displayed-on-the-front-cover-and-solve-ext-messagebox-boxes-are-covered-by-the-method-tabpanel.html keywords : ExtJS, floating, TabPanel, coverarthinking Finger play guitar && technology More

ExtJS let the covered form appear at the top and resolve the method "Go" that the Ext.messagebox prompt box is TabPanel overwritten

Related Article

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.