mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Merge pull request #949 from rcancro/roundMin
Do not round when resolving relative dimensions
This commit is contained in:
commit
bc6e5fee1a
@ -57,7 +57,7 @@ CGFloat ASRelativeDimensionResolve(ASRelativeDimension dimension, CGFloat parent
|
|||||||
case ASRelativeDimensionTypePoints:
|
case ASRelativeDimensionTypePoints:
|
||||||
return dimension.value;
|
return dimension.value;
|
||||||
case ASRelativeDimensionTypePercent:
|
case ASRelativeDimensionTypePercent:
|
||||||
return round(dimension.value * parent);
|
return dimension.value * parent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user