Split Pane on a css position layout form not working

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Split Pane on a css position layout form not working

Postby huber » Thu Sep 09, 2021 8:30 am

Having a Split Pane on a css position layout form, the following Component properties are set:

divLocation: 0.5
divSize: 2
resizeWeigtht: 0.5
splitType: HORIZONTAL
cssPosition: 0,0,0,0,-1,-1

But this settings do not work. Values > 1 (pixel values) work, but are not of help for displaying for example the split pane left hand and right hand side to 50% / 50% or any other percentages.

I am aware of the thread viewtopic.php?f=22&t=22499&p=120001&hilit=splitpane#p120001 and the associated case.

Would be really helpful to have these settings work in NG. Thanks in advance.

Best regards, Robert

PS:
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Split Pane on a css position layout form not working

Postby huber » Mon Sep 13, 2021 3:19 pm

huber wrote:Forgot to mention I am using Developer 202103 LTS
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Split Pane on a css position layout form not working

Postby huber » Tue Jun 21, 2022 9:32 am

I would like to give my current status concerning this issue, using now Servoy Developer 2022.3.1.3743

On NG1 (not Titanium), the horizontal Split Pane (with percentage values, i. e. 0 … 1) works, the vertical does not. Any value, e. g. 0.3 or 0.7 on a vertical Split Pane behaves like it would be the value 0.

On NG Titanium, neither the horizontal nor the vertical Split Pane does work with percentage values. It looks like the Split Pane is always using 0.5, independently oof the set value.

Anyone made the same experience?

Servoy Developer 2022.3.1.3743
openjdk version "1.8.0_332"
macOS Monterey, version 12.4

Best regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Split Pane on a css position layout form not working

Postby wvitpr » Tue Jun 21, 2022 9:38 am

I have the same issue
Regards,
Phillip Routley

Worldview IT
Sydney, Australia
User avatar
wvitpr
 
Posts: 219
Joined: Tue Apr 24, 2007 1:38 am

Re: Split Pane on a css position layout form not working

Postby jcompagner » Tue Jun 21, 2022 2:15 pm

for me on 06 with the latest releases of servoy-extra it works fine as far as i can see.
Attachments
SplitPaneTest.servoy
(7.31 KiB) Downloaded 94 times
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Split Pane on a css position layout form not working

Postby huber » Tue Jun 21, 2022 4:13 pm

jcompagner wrote:for me on 06 with the latest releases of servoy-extra it works fine as far as i can see.


Good to hear. I hope such changes find their way into the 2022.3.x_LTS release.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Split Pane on a css position layout form not working

Postby jcompagner » Tue Jun 21, 2022 4:36 pm

ng1 works fine for me in 2022.3.1 with the latest releases of servoy-extra, so i don't know what you are exactly seeing.

but yes TiNG needs a fix: https://github.com/Servoy/servoy-extra- ... 033b49a955

that will be releases in a 2022.3.2 release of servoy-extra
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Split Pane on a css position layout form not working

Postby huber » Tue Jun 21, 2022 5:29 pm

Split Pane is a WebComponent -> <name> [servoyextra-splitpane]

Setting in divLocation property any percent value like 0.2, 0.7 … hides upper part of the split pane. As there is a handle, I can make it visible again, but it should display with the percent value set when selecting the appropriate menu.
Attachments
Split Pane - WebComponent -> <name> [servoyextra-splitpane].png
Split Pane - WebComponent -> <name> [servoyextra-splitpane].png (65.3 KiB) Viewed 3023 times
looks like this - upper part hidden.png
looks like this - upper part hidden.png (36.87 KiB) Viewed 3023 times
should look like this.png
should look like this.png (40.98 KiB) Viewed 3023 times
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Split Pane on a css position layout form not working

Postby jcompagner » Tue Jun 21, 2022 5:37 pm

did you try my example attached here?
that works fine for me in NG1 in 2022.03.1 with the latest servoy -extra
i don't see a problem it toggles nicely between 0.8 and 0.2
so please change the sample and reattach it to what you see.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Split Pane on a css position layout form not working

Postby huber » Thu Jun 23, 2022 11:29 am

Johan, I did try your example, of course. After some debugging, I found why it does not work here. We have a main form having a split pane where the forms are loaded on.

I enhanced your example by adding another form and statically attach the SplitPaneTest form to the left (main) pane. Starting the application sets the splitter at top, so the left vertical pane (upper form) of the SplitPaneTest form is not visible. The horizontal (upper part) works as expected.

I attach the enhanced solution.
Attachments
SplitPaneTest7r.servoy
(7.91 KiB) Downloaded 86 times
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Split Pane on a css position layout form not working

Postby jcompagner » Thu Jun 23, 2022 3:02 pm

that is because in NG1 when we calculate the position the height is still 0 because first the wrapping splitpane must do its job

It seems we improved that in TiNG because there there is no such problem

i will create a case for this so that we can look into it more closely
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Split Pane on a css position layout form not working

Postby huber » Thu Jun 23, 2022 3:18 pm

Thanks, Johan
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 5 guests

cron