dcchambers / vb4c

vb4c has been archived - please direct all conversation to the original cVim project page: https://github.com/1995eaton/chromium-vim
MIT License
141 stars 13 forks source link

How to prevent page zoom from affecting vbc4 command line UI? #12

Open whereistejas opened 4 years ago

whereistejas commented 4 years ago

I will normally have pages zoomed at 120-140%. However, this enlarges the vbc4 UI, too. Is there any to prevent this?

eastmancr commented 4 years ago

I personally have been looking for a solution to your problem for multiple weeks and can't find an effective solution. Most zoom level detectors are odd workarounds or device (usually mobile) specific and wouldn't make sense to include in the main code. The only way I can see it being added as a dynamic adjustment is as a "potentially unstable" or "experimental" feature or something. Possibly this could be remedied by adjusting your CSS profile in options.

P.S. to you developers reading, window.devicePixelRatio is the closest analog to "zoom" I could find; it defaults to 2 on Chrome for non retina displays. I don't know what it would be for retina.