mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Fix skins with region.txt
If the positioning is sub-pixel, the clip-path can get off a bit
This commit is contained in:
parent
2b81fd1fcb
commit
a12836148d
1 changed files with 2 additions and 2 deletions
|
|
@ -69,8 +69,8 @@ class WindowManager extends React.Component {
|
|||
const boxWidth = bounding.right - bounding.left;
|
||||
|
||||
const move = {
|
||||
x: offsetLeft + (width - boxWidth) / 2,
|
||||
y: offsetTop + (height - boxHeight) / 2
|
||||
x: Math.ceil(offsetLeft + (width - boxWidth) / 2),
|
||||
y: Math.ceil(offsetTop + (height - boxHeight) / 2)
|
||||
};
|
||||
|
||||
const newPositions = this.props.windowsInfo.reduce(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue