1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGModernGalleryVideoContentView.m
2015-10-01 19:19:52 +03:00

16 lines
473 B
Objective-C

#import "TGModernGalleryVideoContentView.h"
@implementation TGModernGalleryVideoContentView
- (void)setFrame:(CGRect)frame
{
[super setFrame:frame];
CGAffineTransform transform = _button.transform;
_button.transform = CGAffineTransformIdentity;
_button.frame = (CGRect){{((frame.size.width - _button.frame.size.width) / 2.0f), ((frame.size.height - _button.frame.size.height) / 2.0f)}, _button.frame.size};
_button.transform = transform;
}
@end