fixed size of layouts

This commit is contained in:
Peter Schojer 2008-10-02 13:10:22 +00:00
parent c4e18f0733
commit b721a11605
2 changed files with 10 additions and 0 deletions

View File

@ -95,8 +95,12 @@ void FrameRenderer::writeProperties(const Frame* pFrame, std::ostream& ostr)
ostr << ",frame:true,header:true,autoScroll:true";
if (pFrame->getWidth() > 0)
ostr << ",width:" << pFrame->getWidth();
else
ostr << ",width:'auto'";
if (pFrame->getHeight() > 0)
ostr << ",height:" << pFrame->getHeight();
else
ostr << ",height:'auto'";
if (!pFrame->getTitle().empty())
ostr << ",title:'" << pFrame->getTitle() << "'";
if (pFrame->collapsible())

View File

@ -106,6 +106,12 @@ void LayoutRenderer::renderParameters(const Layout* pLayout, const RenderContext
if (pLayout->getWidth() > 0)
ostr << "width:" << pLayout->getWidth() << ",";
else
ostr << "width:'auto',";
if (pLayout->getHeight() > 0)
ostr << "height:" << pLayout->getHeight() << ",";
else
ostr << "height:'auto',";
ostr << "layout:'table'";
ostr << ",layoutConfig:" << "{columns:" << cols << "}";