0
На рассмотрении

Expected custom 0,0 position in preset to be 'top-left'

Paul Chambers 8 лет назад обновлен Ionuț Botizan 8 лет назад 1

I actually needed to enter -6,0 to anchor the preset at 'top-left', which was counter-intuitive.

Ответ

Ответ
На рассмотрении

Hi Paul,


That is because Chrome considers the window's drop shadow as being part of the window's size. Unfortunately, there is no way for a Chrome extension to determine the shadow size so that it could be excluded from the new dimensions or coordinates of the window. The only way to overcome this would be to hard-code the shadow size for each operating system (Windows 7/8/10, Mac OS and various Linux distros) and use that. However, this is just a hack and it's not bulletproof, as there are ways for the users to change the window's shadow size or even completely change the way windows look by using themes.

For now, you'll just have to account yourself for the shadow's size on your operating system when setting the position / size of the window.


Best Regards,


Ionuț

Ответ
На рассмотрении

Hi Paul,


That is because Chrome considers the window's drop shadow as being part of the window's size. Unfortunately, there is no way for a Chrome extension to determine the shadow size so that it could be excluded from the new dimensions or coordinates of the window. The only way to overcome this would be to hard-code the shadow size for each operating system (Windows 7/8/10, Mac OS and various Linux distros) and use that. However, this is just a hack and it's not bulletproof, as there are ways for the users to change the window's shadow size or even completely change the way windows look by using themes.

For now, you'll just have to account yourself for the shadow's size on your operating system when setting the position / size of the window.


Best Regards,


Ionuț

Сервис поддержки клиентов работает на платформе UserEcho