Fix overflow: auto

This commit is contained in:
MoyuScript
2017-12-21 23:29:59 +08:00
parent b6997257f4
commit 4210cee7ac
2 changed files with 101 additions and 64 deletions

View File

@ -202,8 +202,7 @@ export default class NodeContainer {
}
getClipPaths(): Array<Path> {
const parentClips = this.parent ? this.parent.getClipPaths() : [];
const isClipped =
this.style.overflow === OVERFLOW.HIDDEN || this.style.overflow === OVERFLOW.SCROLL;
const isClipped = this.style.overflow !== OVERFLOW.VISIBLE;
return isClipped
? parentClips.concat([calculatePaddingBoxPath(this.curvedBounds)])