Script origins control inline policy, all scripts allowed for tab
This commit is contained in:
@@ -22,4 +22,11 @@ extension CGRect
|
||||
|
||||
return rect
|
||||
}
|
||||
|
||||
public func centeredY(inRect: CGRect) -> CGRect {
|
||||
var rect = self
|
||||
rect.origin.y = CGRound((inRect.height - rect.height) / 2.0)
|
||||
|
||||
return rect
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,11 @@ extension UIEdgeInsets
|
||||
return UIEdgeInsets(top: -top, left: -left, bottom: -bottom, right: -right)
|
||||
}
|
||||
}
|
||||
|
||||
func subtracting(_ other: UIEdgeInsets) -> UIEdgeInsets {
|
||||
return UIEdgeInsets(top: self.top - other.top,
|
||||
left: self.left - other.left,
|
||||
bottom: self.bottom - other.bottom,
|
||||
right: self.right - other.right)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user