mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
16 lines
473 B
Objective-C
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
|