mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 22:31:23 +01:00
fixed size of layouts
This commit is contained in:
parent
c4e18f0733
commit
b721a11605
@ -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 << "}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user