![]() |
|
IntraWeb 15.3.7 is out! - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: IntraWeb 15.3.7 is out! (/thread-3320.html) Pages:
1
2
|
RE: IntraWeb 15.3.7 is out! - valmeras - 06-21-2023 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! RE: IntraWeb 15.3.7 is out! - Alexandre Machado - 06-21-2023 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"> RE: IntraWeb 15.3.7 is out! - valmeras - 06-21-2023 I added the viewport tag in the server controller and the result is the same! RE: IntraWeb 15.3.7 is out! - Alexandre Machado - 06-22-2023 So you have a very weird device at hands RE: IntraWeb 15.3.7 is out! - valmeras - 07-01-2023 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! RE: IntraWeb 15.3.7 is out! - Alexandre Machado - 07-02-2023 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. RE: IntraWeb 15.3.7 is out! - Alexandre Machado - 07-03-2023 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/master/15/C%2B%2B/BrowserSizes Run this demo on your desktop browser, click on the button to retrieve the required information, and post the results here please |