[ios] Fixed drop down.

This commit is contained in:
VladiMihaylenko 2016-02-15 13:37:37 +03:00 committed by Sergey Yershov
parent 58df58f385
commit 138798419b

View file

@ -25,8 +25,8 @@ CGFloat const kTopOffset = 25.;
CGFloat const superviewWidth = self.superview.width;
self.message.width = superviewWidth - 2 * kLeadingOffset;
[self.message sizeToFit];
self.size = {superviewWidth, kTopOffset + kBottomOffset + self.message.height};
self.message.midX = self.superview.midX;
self.height = kTopOffset + kBottomOffset + self.message.height;
[super layoutSubviews];
}