Ext


Go Back   Ext JS Forums > Ext General Forums > Ext: Open Discussion

Reply
 
Thread Tools
  #1  
Old 12-22-2006, 01:59 PM
kalebwalton kalebwalton is offline
Ext User
 
Join Date: Mar 2007
Posts: 122
kalebwalton is on a distinguished road
Default BorderLayout within FORM rather than BODY

We're using a BorderLayout to create a form that spans across a few tabs. Since the BorderLayout needs to be appended to document.body (please correct me if I'm wrong) it takes all of our content outside the scope of the FORM element.

Example:

<form>
<div id="myborderlayout">hello</div>
</form>
becomes

<form>
</form>
<div id="myborderlayout">hello</div>
Is there any way to retain the scope of the tabs being within the FORM? I tried to append it to the FORM itself to no avail (rendered a thin blue line, that's it).

If not, I'd like to request that feature ;-)
Reply With Quote
  #2  
Old 12-22-2006, 02:57 PM
tryanDLS tryanDLS is offline
Ext JS - Community Support Team
 
Join Date: Mar 2007
Posts: 7,374
tryanDLS is on a distinguished road
Default

Did you try giving the form a unique ID and pass that to BorderLayout?
__________________
Tim Ryan - Ext JS Support Team
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (3.x | 2.x | 1.x) / FAQ / Wiki / Tutorials / 1.x->2.0 Migration Guide
Reply With Quote
  #3  
Old 12-22-2006, 05:38 PM
jack.slocum's Avatar
jack.slocum jack.slocum is offline
Ext JS - Development Team
 
Join Date: Mar 2007
Posts: 6,941
jack.slocum is on a distinguished road
Default

BorderLayout can be rendered to any element as long as it has dimensions specified:

var layout = new BorderLayout('myborderlayout', { ....

Remember, your internal myborderlayout element will need dimensions.
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dialog width height synchronization with body gzargary Ext 1.x: Help 4 03-19-2007 04:29 AM
Do not set body.innerHTML='' if scripts are loaded in body vtswingkid Ext 2.x: Help 4 02-19-2007 03:51 PM
Ext.Button(document.body, {...}) failes to render??? vtswingkid Ext 1.x: Help 2 01-19-2007 12:59 PM
BorderLayout ContentPanel body height pomata Ext 1.x: Bugs 0 11-30-2006 09:24 PM
overlay.body has no properties? thejoker101 Ext 1.x: Help 6 10-26-2006 11:50 AM

All times are GMT -5. The time now is 07:03 AM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.