fixed scrolling

This commit is contained in:
Peter Schojer 2008-09-11 11:44:03 +00:00
parent 99ea20671e
commit 46844ee523
2 changed files with 4 additions and 3 deletions

View File

@ -92,7 +92,7 @@ void FrameRenderer::renderBody(const Renderable* pRenderable, const RenderContex
void FrameRenderer::writeProperties(const Frame* pFrame, std::ostream& ostr)
{
Utility::writeRenderableProperties(pFrame, ostr);
ostr << ",frame:true,header:true";
ostr << ",frame:true,header:true,autoScroll:true";
if (pFrame->getWidth() > 0)
ostr << ",width:" << pFrame->getWidth();
if (pFrame->getHeight() > 0)

View File

@ -141,7 +141,7 @@ void PageRenderer::renderHead(const Renderable* pRenderable, const RenderContext
ostr << "}});";
// always nest a panel around, so we can get rid of dynamic casts to check for parent type
ostr << "new Ext.Panel({renderTo:'p" << pPage->id() << "',border:false,bodyBorder:false";
ostr << "new Ext.Panel({renderTo:'p" << pPage->id() << "',border:false,bodyBorder:false,autoScroll:true";
if (pPage->beforeRender.hasJavaScriptCode() || pPage->afterRender.hasJavaScriptCode())
{
ostr << ",listeners:{";
@ -154,6 +154,7 @@ void PageRenderer::renderHead(const Renderable* pRenderable, const RenderContext
}
ostr << "}";
}
if (pPage->getHeight() > 0)
ostr << ",height:" << pPage->getHeight();
else
@ -161,7 +162,7 @@ void PageRenderer::renderHead(const Renderable* pRenderable, const RenderContext
if (pPage->getWidth() > 0)
ostr << ",width:" << pPage->getWidth();
else
ostr << ",width:Ext.lib.Dom.getViewWidth()";
ostr << ",width:Ext.lib.Dom.getViewWidth()-20";
ostr << ",items:[";