Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IntraWeb 15.3.7 is out!
#11
The results are the same with this new version.
I am going to use my JavaScript code I was using before.
It always gives the right dimensions but slow!
Reply
#12
As I explained before, you *need* to set the viewport property in ServerController.

Without a viewport tag, your device will use the default viewport size before applying the style to the page and later it will change the value.

Here is what you should use for start:

<meta name="viewport" content="width=device-width, initial-scale=1.0">
Reply
#13
I added the viewport tag in the server controller and the result is the same!
Reply
#14
So you have a very weird device at hands
Reply
#15
I confirm that the browser dimensions issue is not fixed!
Since the release of Intraweb 15.3.8, the issue is affecting both mobile and desktop browsers for the OnRender event!
I did not check for the other events.
The dimensions returned for both desktop and mobile devices are inaccurate!
Reply
#16
It is unlikely that OnResize is not working as it is supposed to do. This event inner workings haven't changed in ages.

It is very simple for you to check if the dimensions are correct:

1- Run your application in a desktop browser
2- Press F12 to open the developer tools. Detach the developer tools window from the application window, so the application will keep the whole screen size.
3- Go to the "Console" tab and type this:

IW.browser.toString()

and press ENTER

You will see something like this being printed:

"[IntraWeb Browser Object]
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0
IsIE: false
IsChrome: false
IsFirefox: true
IsEdge: false
IsSafari: false
IsOpera: false
IsOperaNext: false
IsAndroidBrowser: false
IsWebKit: false
IEVersion: -1
IEDocumentMode: -1
IsStrictMode: true
IsMobile: false
UseIEQuirksMode: false
UseIEBoxModel: false
IsWindows: true
IsAndroid: false
VendorPrefix(): -moz-
DPR: 1
WindowSizeXY(): 1920,955
PageOffsetXY(): 0,0
WindowScrollXY(): 1920,955"


Compare the WindowScrollXY() values with the ones that you have in your OnRender event. They should match.

If they don't match, please submit a test case including the values you get from the console and from the OnResize event itself.
Reply
#17
I just published a new C++ Demo that should give a good idea about the state of this version.

https://github.com/Atozed/IntraWeb/tree/...owserSizes

Run this demo on your desktop browser, click on the button to retrieve the required information, and post the results here please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)