diff --git a/WebWidgets/ExtJS/src/FrameRenderer.cpp b/WebWidgets/ExtJS/src/FrameRenderer.cpp index b507e8709..17358b86c 100644 --- a/WebWidgets/ExtJS/src/FrameRenderer.cpp +++ b/WebWidgets/ExtJS/src/FrameRenderer.cpp @@ -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()) diff --git a/WebWidgets/ExtJS/src/LayoutRenderer.cpp b/WebWidgets/ExtJS/src/LayoutRenderer.cpp index 149fa74d2..e9f7bedbd 100644 --- a/WebWidgets/ExtJS/src/LayoutRenderer.cpp +++ b/WebWidgets/ExtJS/src/LayoutRenderer.cpp @@ -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 << "}";