Min width and height
Min width and height
Hey
Is it possible to setup a min width and min height for applications running on html5?
Is it possible to setup a min width and min height for applications running on html5?
Re: Min width and height
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.
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.
Olivier
TSplus support team administrator

TSplus support team administrator

Re: Min width and height
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.
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.
TSplus HTML5 and Java web engineer
Re: Min width and height
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.
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
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.
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.
TSplus HTML5 and Java web engineer
Re: Min width and height
It should work on chrome(desktop) or just in mobile devices?
Re: Min width and height
That is mobile only since it has no sense for pc devices.
TSplus HTML5 and Java web engineer
Re: Min width and height
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.
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
Hi,
no, this behavior is not implemented.
no, this behavior is not implemented.
TSplus HTML5 and Java web engineer
Re: Min width and height
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.
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.