Min width and height

Get help with troubleshooting issues
dionatan
Posts: 8
Joined: Tue Dec 20, 2016 12:47 pm

Min width and height

Post by dionatan » Fri Feb 24, 2017 2:44 pm

Hey

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

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Min width and height

Post by admin » Fri Feb 24, 2017 3:14 pm

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.
Olivier
TSplus support team administrator
Image

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Min width and height

Post by juwagn » Fri Feb 24, 2017 3:32 pm

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.
TSplus HTML5 and Java web engineer

dionatan
Posts: 8
Joined: Tue Dec 20, 2016 12:47 pm

Re: Min width and height

Post by dionatan » Fri Feb 24, 2017 3:52 pm

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.

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Min width and height

Post by juwagn » Fri Feb 24, 2017 6:57 pm

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.
TSplus HTML5 and Java web engineer

dionatan
Posts: 8
Joined: Tue Dec 20, 2016 12:47 pm

Re: Min width and height

Post by dionatan » Fri Feb 24, 2017 9:44 pm

It should work on chrome(desktop) or just in mobile devices?

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Min width and height

Post by juwagn » Fri Feb 24, 2017 10:11 pm

That is mobile only since it has no sense for pc devices.
TSplus HTML5 and Java web engineer

dionatan
Posts: 8
Joined: Tue Dec 20, 2016 12:47 pm

Re: Min width and height

Post by dionatan » Wed Mar 01, 2017 8:23 pm

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.

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Min width and height

Post by juwagn » Thu Mar 02, 2017 7:15 am

Hi,

no, this behavior is not implemented.
TSplus HTML5 and Java web engineer

cesare
Posts: 78
Joined: Tue Aug 04, 2015 4:26 pm

Re: Min width and height

Post by cesare » Fri Mar 03, 2017 5:20 pm

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.

Post Reply