Page 1 of 2

Min width and height

Posted: Fri Feb 24, 2017 2:44 pm
by dionatan
Hey

Is it possible to setup a min width and min height for applications running on html5?

Re: Min width and height

Posted: Fri Feb 24, 2017 3:14 pm
by admin
Hello,

You can change resolution for mobile devices, locate the settings.js file located in C:\Program Files (x86)\TSplus\Clients\www\software folder the line :

viewportwidth = "1024"

and change it to a bigger value, like 1280 instead of 1024, for example.
Remember, this will only affect mobile devices resolution.

Re: Min width and height

Posted: Fri Feb 24, 2017 3:32 pm
by juwagn
Hello,

yes, that is possible since 9.80

www\software\html5\settings.js
W.viewportwidth = "1024";
W.viewportminheight = "200";
W.viewportminwidth = "200";

with W.viewportwidth you set minimum initial width, height gets computed automatically.
but with W.viewportminwidth it acts differently, so if greater than W.viewportwidth, as example
W.viewportwidth = "1024";
W.viewportminwidth = "1248";
then 1248 - 1024 = 224 pixels always overflowing or right side, so you would need always to scroll on right side..
by W.viewportminheight same as W.viewportminwidth if automatically computed height undeflows this value it will be added on bottom as extra scrollable area.

Re: Min width and height

Posted: Fri Feb 24, 2017 3:52 pm
by dionatan
Do I need to restart the service to apply the new configuration?

I just set it to:

W.viewportwidth = "1024";
W.viewportminheight = "1024";
W.viewportminwidth = "768";

But it seems not to work.

Re: Min width and height

Posted: Fri Feb 24, 2017 6:57 pm
by juwagn
You firstly should be aware what do you want to achieve?

W.viewportwidth = "1024";
W.viewportminheight = "1024";
W.viewportminwidth = "768";

setting W.viewportminwidth has no sense in your case, since W.viewportwidth = "1024" has higher value than W.viewportminwidth = "768", so always underflows and depending on orientation in landscape mode or portrait setting W.viewportminheight by such small value you would get only in landscape mode some visible overflowing because in portrait mode by W.viewportwidth = "1024"; the computed height will for sure overflow W.viewportminheight value..

Remember W.viewportwidth has always advantage before W.viewportminwidth value, so possibly if you set

W.viewportwidth = "768";
W.viewportminheight = "1024";
W.viewportminwidth = "1024";
you would get some visible acting, but in such case 768 pixels will be initial viewport size on browser level and so locked for zoom-out.

Re: Min width and height

Posted: Fri Feb 24, 2017 9:44 pm
by dionatan
It should work on chrome(desktop) or just in mobile devices?

Re: Min width and height

Posted: Fri Feb 24, 2017 10:11 pm
by juwagn
That is mobile only since it has no sense for pc devices.

Re: Min width and height

Posted: Wed Mar 01, 2017 8:23 pm
by dionatan
Is there a way to make TSPlus show a scrollbar when client resolution is smaller than a min size?

For example:
Our application has the follow specification:
Min Resolution: 1024 x 768.

But when our application run on TSPLUS(when the client has 1024 x 768), it makes application run with less than 768 pixels, due to chrome bars.

Re: Min width and height

Posted: Thu Mar 02, 2017 7:15 am
by juwagn
Hi,

no, this behavior is not implemented.

Re: Min width and height

Posted: Fri Mar 03, 2017 5:20 pm
by cesare
Hello

for us it is one feature request to make TSPlus showing a vertical scrollbar when client resolution is smaller than a min height size.

+1

Thanks.