Charts improvements

This commit is contained in:
Ilya Laktyushin
2020-03-21 03:19:05 +04:00
parent c5d39df2b3
commit d6f0a02fc7
59 changed files with 4448 additions and 4271 deletions

View File

@@ -83,8 +83,12 @@ final class OverlayInstantVideoNode: OverlayMediaItemNode {
self.updateLayout(self.bounds.size)
}
override func preferredSizeForOverlayDisplay() -> CGSize {
return CGSize(width: 120.0, height: 120.0)
override func preferredSizeForOverlayDisplay(boundingSize: CGSize) -> CGSize {
if min(boundingSize.width, boundingSize.height) > 320.0 {
return CGSize(width: 150.0, height: 150.0)
} else {
return CGSize(width: 120.0, height: 120.0)
}
}
override func dismiss() {