Auto auto Layout

Source: Internet
Author: User

Ext. layout. container. auto Automatic Layout is the default layout type used by containers when no layout mode is specified. The child elements are laid out using the original HTML document stream and the layout call is passed to the sub-container, the name of the corresponding panel configuration item (layout) is auto.

Auto example:

 <!  Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"  >  <  Html  Xmlns  = "Http://www.w3.org/1999/xhtml"  >  <  Head  Runat  = "Server" >      <  Title  > Ext. layout. Container. Auto example </  Title  >      <  Link  Href  = "Ext-4.0.7-gpl/resources/CSS/ext-all.css"  REL  = "Stylesheet"  Type  = "Text/CSS"   />     <  Script  SRC  = "Ext-4.0.7-gpl/Bootstrap. js"  Type  = "Text/JavaScript"  > </  Script  >      <  Script  Type  = "Text/JavaScript"  >  Ext. onready ( Function  () {Ext. Create (  "  Ext. Panel. Panel  "  , {Title:  "  Ext. layout. Container. Auto example  "  , Frame:  True , Width:  300  , Renderto: Ext. getbody (), bodypadding:  5  , Layout:  "  Auto  "  , Defaults: {bodystyle:  " Background-color: # ffffff  "  }, Items: [{Title:  "  Nested Panel 1  "  , HTML:  "  Panel 1  " },{ Title:  "  Nested panel 2  "  , HTML:  "  Panel 2  "  }]}) ;});  </  Script >  </  Head  >  <  Body  >  </  Body  >  </  Html  > 

:

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.