PDA

View Full Version : Toolbar At Bottom of Container



nbfarrand
28 Nov 2007, 5:04 AM
After upgrading from EXTJS 1.1 to 2.0 my toolbar which was displaying inside the container div at the desired place is now falling to the bottom of my container as opposed to where my toolbar div is located.

tryanDLS
28 Nov 2007, 8:07 AM
Can't guess without seeing some code.

nbfarrand
28 Nov 2007, 2:23 PM
Ha... thought you would say that. I tried to follow the instructions on the toolbar example. Anyways, I figured it out. I had a div that contained the toolbar and other stuff. The toolbar div was at the top of all the other stuff. In ext 1.1 it would show at the top of the div. In ext 2 if feel to the bottom. The solution: Add another toolbar container div that just surrounds the toolbar. See code below for example...

EXTJS 1.1 Toolbar would show top 2.0 would show at bottom


<div id="container">
<div id="toolbar"></div>
<h2>Stuff</h2>
<br/>
<br/>
<br/>
<p>More Stuff</p>
</div


Fix



<div id="container">
<div id="toolbar-container">
<div id="toolbar"></div>
</div>
<h2>Stuff</h2>
<br/>
<br/>
<br/>
<p>More Stuff</p>
</div