Cannot move the debug window.
Cannot move the debug window.
If I increase the system font to 125% in Windows, I can no longer move the debug window. It gets stuck on the left side.
Re: Cannot move the debug window.
You mean in the browser ? Can you post a screenshot ? I tried here (with Windows font to 125%) in firefox, but it works as expected. Can anybody else confirm ?
Re: Cannot move the debug window.
Yes, I mean the debugwindow in the browser.
I found the reason. I use the following code:
I found the reason. I use the following code:
Code: Select all
!document.body.style.zoom = 1 / window.devicePixelRatio * 100 + "%"
!v_width=document.body.clientWidth;
!v_height=document.body.clientHeight;
Re: Cannot move the debug window.
As said before, this code doesn't really zoom properly, you shouldn't use it.
Re: Cannot move the debug window.
Oh, okay, I didn't read that.
The problem is, I need a zoom because I also program for phones and tablets and the resolution on these devices is much too high.
Is there a better way to zoom in a web app?
The problem is, I need a zoom because I also program for phones and tablets and the resolution on these devices is much too high.
Is there a better way to zoom in a web app?
Re: Cannot move the debug window.
This needed for mobile only?
You can get from deviceifnf() information if running under. Android or ios and "zoom" only there
Possible solution?
You can get from deviceifnf() information if running under. Android or ios and "zoom" only there
Possible solution?
Christos
Re: Cannot move the debug window.
I think there is a viewport tag to handle high dpi mode on mobile/tablet
Re: Cannot move the debug window.
I don't program specifically for Android or IOS. I make a web app that will then also be used in the browser of tablets and phones.
But the resolution on phones and tablets is very high, so I zoom the screen so that it is easier to handle.
But the resolution on phones and tablets is very high, so I zoom the screen so that it is easier to handle.
Re: Cannot move the debug window.
You can check also if it running in mobile browser via agent
Or you can checkscreen resolution and act accordinly
Or you can checkscreen resolution and act accordinly
Christos
Re: Cannot move the debug window.
Yes, something like this I think;Fred wrote: Sun Oct 20, 2024 4:05 pm I think there is a viewport tag to handle high dpi mode on mobile/tablet
Code: Select all
<meta name="viewport" content="width=device-width, initial-scale=1.0">
[