Animal
3 Oct 2007, 5:26 AM
I'm using our legacy web app as a simple way to get into Ext 2.0 because it will use the simpler classes - Panel, ToolTip etc...
So I'm changing my old popup datepicker to be managed by a Panel rather than setting the visibility and position manually.
I create the Panel from an existing table that was written into the page markup:
calendarObject = new Ext.Panel({
applyTo: "calendarControl",
floating: true
});
The "calendarControl" element is a table. I expected the table to become the whole panel.
What it is doing is using the table as the overall element nicely, but it is appending an x-panel-bwrap element containing an x-panel-body element to the element.
applyTo should mean that the programmer is on control of the element that encapsulates the Component. That element is both the Component element and the body element.
You can see the extra div highlighted in Firebug in the screenshot below:
http://i131.photobucket.com/albums/p286/TimeTrialAnimal/bwrap.jpg
So I'm changing my old popup datepicker to be managed by a Panel rather than setting the visibility and position manually.
I create the Panel from an existing table that was written into the page markup:
calendarObject = new Ext.Panel({
applyTo: "calendarControl",
floating: true
});
The "calendarControl" element is a table. I expected the table to become the whole panel.
What it is doing is using the table as the overall element nicely, but it is appending an x-panel-bwrap element containing an x-panel-body element to the element.
applyTo should mean that the programmer is on control of the element that encapsulates the Component. That element is both the Component element and the body element.
You can see the extra div highlighted in Firebug in the screenshot below:
http://i131.photobucket.com/albums/p286/TimeTrialAnimal/bwrap.jpg