From 8db9f0086b3d9395e6a066e1385b977396d33a44 Mon Sep 17 00:00:00 2001 From: Peter Schojer Date: Wed, 3 Sep 2008 14:02:09 +0000 Subject: [PATCH] added visibilty to layouts --- WebWidgets/ExtJS/src/LayoutRenderer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WebWidgets/ExtJS/src/LayoutRenderer.cpp b/WebWidgets/ExtJS/src/LayoutRenderer.cpp index 7a9b8392e..16242c89f 100644 --- a/WebWidgets/ExtJS/src/LayoutRenderer.cpp +++ b/WebWidgets/ExtJS/src/LayoutRenderer.cpp @@ -70,6 +70,8 @@ void LayoutRenderer::renderLayoutHead(const Layout* pLayout, const RenderContext // assume that the direct parent is a panel ostr << "new Ext.Panel({border:false,bodyBorder:false,"; ostr << "id:'" << pLayout->id() << "',"; + if (!pLayout->isVisible()) + ostr << "hidden:true,"; renderParameters(pLayout, context, ostr, layoutId, layoutConfig, cols, horPad, vertPad); ostr << "})"; }