Notes for extjs Development

Source: Internet
Author: User

1. Why is the display of the datefield control incomplete recently. You can find such a code on the Internet to solve this problem. 1: Ext. override (Ext. menu. dateMenu, {2: autoWidth: function () {3: var el = this. el, ul = this. ul; 4: if (! El) {5: return; 6:} 7: var w = this. width; 8: if (w) {9: el. setWidth (w); 10:} else if (Ext. isIE &&! Ext. isIE8) {11: el. setWidth (this. minWidth); 12: var t = el. dom. offsetWidth; // force recalc 13: el. setWidth (ul. getWidth () + el. getFrameWidth ("lr"); 14:} 15:} 16 :}); during extjs development, I summarized the following points and hoped to develop extjs. Note: 1. The DOCTYPE definition in doctype html in html is especially sensitive to IE. So I suggest you do not write it. 2. X-UA-Compatible sets the IE parsing version. Since I use IE 9, I can use X-UA-Compatible to set it to IE 6, IE 7, and IE8 versions. The compatibility of IE 8 with extjs2.x is not good. Here I suggest you write less. 3. If you are a newbie of extjs, you are advised to use a later version for development.

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.