use of com.servoy.j2db.server.headlessclient.MainPage in project servoy-client by Servoy.
the class WebSplitPane method setRuntimeDividerLocation.
public void setRuntimeDividerLocation(double locationPos) {
if (locationPos < 0)
return;
setDividerLocationInternal(locationPos);
IRequestTarget requestTarget = RequestCycle.get().getRequestTarget();
MainPage page = (MainPage) findPage();
if (requestTarget instanceof AjaxRequestTarget && page != null) {
((PageContributor) page.getPageContributor()).addSplitPaneToUpdatedDivider(this);
if (// $NON-NLS-1$
page.getController() != null && Utils.getAsBoolean(page.getController().getApplication().getRuntimeProperties().get("enableAnchors"))) {
// $NON-NLS-1$
((AjaxRequestTarget) requestTarget).appendJavascript("layoutEntirePage();");
}
// $NON-NLS-1$
((AjaxRequestTarget) requestTarget).appendJavascript("Servoy.Resize.onWindowResize();");
} else
sizeChanged = true;
}
Aggregations