URLBar: don't animate shadow paths during animation
This commit is contained in:
@@ -181,8 +181,12 @@ class URLBar: ReliefButton
|
||||
|
||||
override func layoutSubviews() {
|
||||
super.layoutSubviews()
|
||||
backgroundView.frame = bounds
|
||||
shadowView.frame = bounds
|
||||
|
||||
if let animationKeys = self.layer.animationKeys(), animationKeys.count > 0 {
|
||||
// Kill the shadowPath while animating, since we cannot animate shadow paths apparently.
|
||||
shadowView.layer.shadowPath = nil
|
||||
}
|
||||
|
||||
progressIndicatorView.frame = backgroundView.bounds
|
||||
|
||||
// Document button
|
||||
|
||||
Reference in New Issue
Block a user