palant / pfp

A simple and secure browser extension to be used with KeePass databases.
https://pfp.works/
Mozilla Public License 2.0
113 stars 14 forks source link

Panel gets resized horizontally on Windows #23

Closed palant closed 8 years ago

palant commented 8 years ago

Each call to resize() produces a change in horizontal size on Windows but not OS X. This is because the panel adds two pixels when measuring document size - this is necessary on OS X as the Add-on SDK won't size the panel correctly otherwise, this issue doesn't seem to exist on Windows however.

palant commented 8 years ago

In fact, Add-on SDK not sizing the panel correctly is caused by this line. Apparently, this padding is only being set on OS X, so the issue doesn't affect other platforms. I filed bug 1270095 on it.

Let's make sure that my work-around is only being applied on OS X...