1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-11 05:05:23 +03:00
This commit is contained in:
Alisa Mylnikova 2019-07-05 11:41:04 +07:00
parent a3d70e56e3
commit 76a82533ad

View File

@ -60,9 +60,9 @@ open class Group: Node {
let clip = self.clip?.bounds().toCG() {
let newX = max(bounds.minX, clip.minX)
let newY = max(bounds.minY, clip.minY)
return CGRect(x: newX, y: newY,
width: min(bounds.maxX, clip.maxX) - newX,
height: min(bounds.maxY, clip.maxY) - newY).toMacaw()
return Rect(Double(newX), Double(newY),
Double(min(bounds.maxX, clip.maxX) - newX),
Double(min(bounds.maxY, clip.maxY) - newY))
}
return bounds
}