forked from organicmaps/organicmaps
[ios] Fixed crash for some html bookmarks description
This commit is contained in:
parent
b027839e3f
commit
390e220b58
1 changed files with 6 additions and 1 deletions
|
@ -64,7 +64,12 @@
|
|||
|
||||
+ (CGFloat)cellHeightWithWebViewHeight:(CGFloat)webViewHeight
|
||||
{
|
||||
return webViewHeight - 5;
|
||||
// @HACK This code should be rewritten. It is a release-hot-fix.
|
||||
// Sometimes webViewHeight is too low for some html descriptions (should be investigated deeply)
|
||||
CGFloat const h = webViewHeight - 5;
|
||||
if (h < 0)
|
||||
return 0;
|
||||
return h;
|
||||
}
|
||||
|
||||
+ (CGFloat)cellHeightWithTextValue:(NSString *)text viewWidth:(CGFloat)viewWidth
|
||||
|
|
Loading…
Add table
Reference in a new issue