mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
fixed size of layouts
This commit is contained in:
@@ -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())
|
||||
|
@@ -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 << "}";
|
||||
|
Reference in New Issue
Block a user