mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 17:26:03 +03:00
[GH-ISSUE #965] Textarea display problem in super hi-dpi #335
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#335
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RickoNoNo3 on GitHub (Jun 29, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/965
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.
@liyasthomas commented on GitHub (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..
@RickoNoNo3 commented on GitHub (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:
document.body.clientWidthshows1020, with issue1134), with issue1275), no issue927), no issueThese 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.clientWidthin default scaling of firefox is1280while in Chrome is1020. The true width of 150% of 1920x1080 is indeed1280. So my Chrome has an unexpected over zooming (bigger text as well). Edge too.@RickoNoNo3 commented on GitHub (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 commented on GitHub (Jul 1, 2020):
Noted. Looking into it.
@liyasthomas commented on GitHub (Jul 5, 2020):
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 commented on GitHub (Jul 5, 2020):
You are right. It works well to set a different zoom ratio as default of Chrome.