Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea display problem in super hi-dpi #965

Closed
RickoNoNo3 opened this issue Jun 29, 2020 · 6 comments
Closed

Textarea display problem in super hi-dpi #965

RickoNoNo3 opened this issue Jun 29, 2020 · 6 comments
Labels
need information Requires more info

Comments

@RickoNoNo3
Copy link

While I was using postwoman in chrome, I found a problem: all of textareas (with linenumber) undisplayed.
(only happened in chrome/new edge, no ff/old edge)

You will easily reappear the problem:
make your screen dpi in a super high mode, such as 1920x1080 with 150% scales. And switch to POST method in the postwoman. Then check raw input. you will see that textarea of raw request body has been undisplayed.

Magically, when I changed browser display scale (ctrl + as you know). In any way, the textarea redisplayed.


issue

@liyasthomas liyasthomas added the bug Something isn't working label Jun 29, 2020
@liyasthomas
Copy link
Member

liyasthomas commented Jun 30, 2020

@RickoNoNo3 I tried to reproduce the issue at my end but I couldn't. Can you tell a little more about your device. which operating system? Chrome version? etc..

image

image

@liyasthomas liyasthomas added need information Requires more info and removed bug Something isn't working labels Jun 30, 2020
@RickoNoNo3
Copy link
Author

RickoNoNo3 commented Jun 30, 2020

@liyasthomas I use Chrome 83.0.4103.116 (latest) on Windows 10 2004. Screen: 1920x1080 (150% as 1280x720)

I tried more about how to make it reappeared and noticed:

  • In 100% default scaling of my Chrome, document.body.clientWidth shows 1020, with issue
  • In 90% scaling(1134), with issue
  • In l/e 80%(1275), no issue
  • In g/e 110%(927), no issue
  • In media keyword triggered, no issue
  • When textareas are undisplayed, adjusting the zoom to safe scaling on the same page will make them show.
  • Once textareas are displayed, no operations can make it restored to undisplay.

These conclusions are established, unless you reload a textarea(maybe turn off raw input and check it again). reloading a textarea has the same behavior with reloading the page.

So in my mind, this issue appears in a kind of environment with specific width. And it is a problem that occurs when generating textarea elements (not related to css).

btw body.clientWidth in default scaling of firefox is 1280 while in Chrome is 1020. The true width of 150% of 1920x1080 is indeed 1280. So my Chrome has an unexpected over zooming (bigger text as well). Edge too.

@RickoNoNo3
Copy link
Author

RickoNoNo3 commented Jun 30, 2020

nonono, not just page client width, I cannot get it appeared by resizing my browser window to the "problem width". Instead, it still make a wrong in 90% and 100% scaling no matter how big the window is.
Maybe It is directly related to the total width of the screen? or the dpi?

@liyasthomas
Copy link
Member

Noted. Looking into it.

@liyasthomas
Copy link
Member

I guess we can ignore this UI issue since it's only reproducible in such an edge case of super-high dpi. Let me know if you it is reproducible in normal situations.

@RickoNoNo3
Copy link
Author

You are right. It works well to set a different zoom ratio as default of Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need information Requires more info
Projects
None yet
Development

No branches or pull requests

2 participants