mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-15 22:50:36 +02:00
fixed image renders
This commit is contained in:
parent
6bf2319a9e
commit
a7da97f27d
@ -61,8 +61,14 @@ void ImageRenderer::renderHead(const Renderable* pRenderable, const RenderContex
|
|||||||
poco_assert_dbg (pRenderable->type() == typeid(Poco::WebWidgets::Image));
|
poco_assert_dbg (pRenderable->type() == typeid(Poco::WebWidgets::Image));
|
||||||
const Image* pImage = static_cast<const Poco::WebWidgets::Image*>(pRenderable);
|
const Image* pImage = static_cast<const Poco::WebWidgets::Image*>(pRenderable);
|
||||||
ostr << "new Ext.Panel({border:false,bodyBorder:false,";
|
ostr << "new Ext.Panel({border:false,bodyBorder:false,";
|
||||||
|
ostr << "id:'" << pImage->id() << "',";
|
||||||
ostr << "html:";
|
ostr << "html:";
|
||||||
writeHTML(pImage, ostr);
|
writeHTML(pImage, ostr);
|
||||||
|
ostr << ",closeAction:'hide'";
|
||||||
|
if (!pImage->isVisible())
|
||||||
|
{
|
||||||
|
ostr << ",hidden:true";
|
||||||
|
}
|
||||||
ostr << "})";
|
ostr << "})";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ void RequestHandler::handleAjaxRequest(Poco::Net::HTTPServerRequest& request, Po
|
|||||||
|
|
||||||
it = args.begin();
|
it = args.begin();
|
||||||
RequestProcessor* pProc = _pApp->getAjaxProcessor(id);
|
RequestProcessor* pProc = _pApp->getAjaxProcessor(id);
|
||||||
poco_assert_dbg (pProc);
|
//poco_assert_dbg (pProc);
|
||||||
if (!pProc)
|
if (!pProc)
|
||||||
{
|
{
|
||||||
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, "no requestprocessor found");
|
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, "no requestprocessor found");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user