fix: 消除因padding带来的错位
This commit is contained in:
parent
174a78dd8a
commit
4b84d813bd
@ -357,8 +357,8 @@ export default class Painter {
|
|||||||
|
|
||||||
view.css.bottom = undefined
|
view.css.bottom = undefined
|
||||||
view.css.right = undefined
|
view.css.right = undefined
|
||||||
view.css.left = `${view.rect.left}px`
|
view.css.left = `${view.rect.x}px`
|
||||||
view.css.top = `${view.rect.top}px`
|
view.css.top = `${view.rect.y}px`
|
||||||
|
|
||||||
this.ctx.rotate(angle);
|
this.ctx.rotate(angle);
|
||||||
if (!notClip && view.css && view.css.borderRadius && view.type !== 'rect') {
|
if (!notClip && view.css && view.css.borderRadius && view.type !== 'rect') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user