Hi,
Is it possible to set the split pane divider location through CSS.. Ideally I want to give it a percentage eg. 70%
elements.splitpane.dividerLocation = 0.7
paronne wrote:Hi,
yes that's it indeed. Currently it really has to be an Anchored form, not Simple CSS.
You can re-create (has to be a new form, you cannot change to Anchored your simple CSS form) the form containint the splitpane as Anchored; when the solution type is NG Client or NG Module the Anchored form type is filtered out in the new Form Wizard; you can temporarely change the solution type to Normal, create the anchored form where you will use your splitpane and finally switch back the solution type to NG.
I have created a request for R&D to look at the dividerLocation in Simple CSS forms, possibly will be supported in the future; you can follow up at https://support.servoy.com/browse/SVY-13792
Regards
var w = controller.getFormWidth();
elements.split.dividerLocation = w/2;
.split-50 > .split-panes.horizontal > .split-pane1 {
width: 50% !important;
}
.split-50 > .split-panes.horizontal > .split-pane2 {
left: 50% !important;
}
Return to Programming with Servoy
Users browsing this forum: No registered users and 22 guests