mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 14:39:53 +01:00
fixed scrolling
This commit is contained in:
parent
99ea20671e
commit
46844ee523
@ -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)
|
||||
|
@ -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:[";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user