fixed image renders

This commit is contained in:
Peter Schojer
2008-09-09 11:48:53 +00:00
parent 6bf2319a9e
commit a7da97f27d
2 changed files with 7 additions and 1 deletions

View File

@@ -61,8 +61,14 @@ void ImageRenderer::renderHead(const Renderable* pRenderable, const RenderContex
poco_assert_dbg (pRenderable->type() == typeid(Poco::WebWidgets::Image));
const Image* pImage = static_cast<const Poco::WebWidgets::Image*>(pRenderable);
ostr << "new Ext.Panel({border:false,bodyBorder:false,";
ostr << "id:'" << pImage->id() << "',";
ostr << "html:";
writeHTML(pImage, ostr);
ostr << ",closeAction:'hide'";
if (!pImage->isVisible())
{
ostr << ",hidden:true";
}
ostr << "})";
}