I have an Ext.Panel with scrolling set to vertical. It renders html that looks like this:
HTML Code:
<div id="description" class=" x-panel" style="width: 638px; height: 235px; "><div class="x-panel-body x-scroller-parent" id="ext-gen1027" style="height: 235px; left: 0px; top: 0px; "><div id="ext-gen1028" style="min-height: 235px; width: 638px; -webkit-transform: translate3d(0px, -56px, 0px); " class=" x-scroller"></div><div class="x-scrollbar x-scrollbar-vertical x-scrollbar-dark" id="ext-gen1029" style="opacity: 1; -webkit-transform: translate3d(0px, 60px, 0px); height: 171px; "></div></div></div>
I know that if I have
Code:
var description = new Ext.Panel({
id: 'description',
height: 235,
scroll: 'vertical'
});
I can reference the body of this by using description.body but that doesn't address the extra div created for the scroll content (id="ext-gen1028" class=" x-scroller"). Is there a good way to target this div for appending content using Ext.DomHelper.append.
This appends the 'p' after the scroll content and so it falls outside the visible area.
Code:
Ext.DomHelper.append(description.body,{tag: 'p', html: log});