FlexLayoutImpl::~FlexLayoutImpl() { WApplication *app = WApplication::instance(); if (parentLayoutImpl() == nullptr) { if (container() == app->root()) { app->setBodyClass(""); app->setHtmlClass(""); } } }
StdGridLayoutImpl2::~StdGridLayoutImpl2() { WApplication *app = WApplication::instance(); /* * If it is a top-level layout (as opposed to a nested layout), * configure overflow of the container. */ if (parentLayoutImpl() == 0) { if (container() == app->root()) { app->setBodyClass(""); app->setHtmlClass(""); } if (app->environment().agentIsIElt(9) && container()) container()->setOverflow(WContainerWidget::OverflowVisible); } }
void StdGridLayoutImpl2::containerAddWidgets(WContainerWidget *container) { StdLayoutImpl::containerAddWidgets(container); if (!container) return; WApplication *app = WApplication::instance(); /* * If it is a top-level layout (as opposed to a nested layout), * configure overflow of the container. */ if (parentLayoutImpl() == 0) { if (container == app->root()) { /* * Reset body,html default paddings and so on if we are doing layout * in the entire document. */ app->setBodyClass(app->bodyClass() + " Wt-layout"); app->setHtmlClass(app->htmlClass() + " Wt-layout"); } } }