Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Ideas] Get screen width and height

$
0
0

There is already a way to get this with a workaround with javascript

1. get and set the parameters in vars

2. notify it using the 'OsNotifyWidget' in javascript with the id of a fakenotify webblock

3. in the on notify, use notifyGetMessage()

4. assign the width/height  to a variable in outsystems you wish to use it for

5. refresh the block that is to use that variable.


Would it be possible to have some kind of property that will be filled on run time with the pagewidth/pageheight? So that we can build the logic around that variable?


I used this to have a page width based Gallery structure as in the attached picture


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>