Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.63k stars 829 forks source link

extension renders differently when using different language version #245

Open kaisunc opened 5 years ago

kaisunc commented 5 years ago

more specifically when using the css zoom property. when in english interface, it matches what chrome renders. Using traditional chinese the zoom seems to be off by around half.

ErinFinnegan commented 5 years ago

Hi there @kaisunc ,

Can you be a bit more specific? Which product(s) does your extension support? (Photoshop? InDesign?)

Which version of CEP are you using? Which OS do you see this in? Can you share a line of code with the css zoom property, and maybe a screenshot or two?

kaisunc commented 5 years ago

Adobe Photoshop Version: 20.0.6 20190724.r.80 2019/07/24: 1207344 x64 phxs 19 csxs 8 windows10 enterprise english 2560x1440 apple thunderbolt display with no display scaling,

english ui, with no zoom english_no_zoom

english ui with 0.1 zoom english_point1_zoom

traditional chinese ui wtih no zoom traditional_chinese_no_zoom

traditional chinese ui with 0.1 zoom traditional_chinese_point1_zoom

kaisunc commented 5 years ago

not much to the code, just the css zoom property

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
    <style>
        body {
            zoom: .1
        }; 
    </style>
</head>

<body>
    <div>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>

</body>
ErinFinnegan commented 5 years ago

Hi @kaisunc ,

I'm asking the CEP team about this. It might have to do with the CEF version in Chrome.

Check out this chart.