fix: app badges could be incorrectly positioned on the very first launch
This commit is contained in:
1 parent
837fa03f64
commit
c2ccccd093
1 file changed
+6
-6
@@ -446,12 +446,12 @@ class ThumbnailView: FlippedView {
|
|||||||
}
|
}
|
||||||
windowlessAppIndicator.frame.origin.y = windowlessAppIndicator.superview!.frame.height - windowlessAppIndicator.frame.height
|
windowlessAppIndicator.frame.origin.y = windowlessAppIndicator.superview!.frame.height - windowlessAppIndicator.frame.height
|
||||||
}
|
}
|
||||||
if !dockLabelIcon.isHidden {
|
// we set dockLabelIcon origin, without checking if .isHidden
|
||||||
let iconSize = ThumbnailView.iconSize()
|
// This is because its updated async. We needed it positioned correctly always
|
||||||
dockLabelIcon.frame.origin.x = ((iconSize.width * 0.8) - (dockLabelIcon.fittingSize.width / 2)).rounded()
|
let iconSize = ThumbnailView.iconSize()
|
||||||
dockLabelIcon.frame.origin.y = ((iconSize.height * 0.8) - (dockLabelIcon.fittingSize.height / 2)).rounded()
|
dockLabelIcon.frame.origin.x = ((iconSize.width * 0.8) - (dockLabelIcon.fittingSize.width / 2)).rounded()
|
||||||
- (Preferences.appearanceSize == .small ? 2 : 0)
|
dockLabelIcon.frame.origin.y = ((iconSize.height * 0.8) - (dockLabelIcon.fittingSize.height / 2)).rounded()
|
||||||
}
|
- (Preferences.appearanceSize == .small ? 2 : 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func indicatorsSpace() -> CGFloat {
|
private func indicatorsSpace() -> CGFloat {
|
||||||
|
|||||||
Reference in new issue
Block a user