[ios] Fixed place page layout bug.

This commit is contained in:
VladiMihaylenko 2016-03-09 17:30:59 +03:00 committed by Sergey Yershov
parent e9f4460b1a
commit ca4fb3c8eb

View file

@ -276,7 +276,9 @@ enum class AttributePosition
{
self.titleLabel.origin = {kLeftOffset, 0};
self.typeLabel.origin = {kLeftOffset, self.titleLabel.maxY + kLabelsBetweenOffset};
self.addressLabel.origin = {kLeftOffset, self.typeLabel.maxY + kLabelsBetweenOffset};
self.addressLabel.origin = self.typeLabel.text.length > 0 ?
CGPointMake(kLeftOffset, self.typeLabel.maxY + kLabelsBetweenOffset) :
self.typeLabel.origin;
}
- (void)layoutDistanceBoxWithPosition:(AttributePosition)position