Fix: CSS background-image on Label not loading in iOS

Resolves #2414
This commit is contained in:
Rossen Hristov
2016-07-21 09:44:20 +03:00
parent ff71e6ebee
commit fc39fad959
6 changed files with 19 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ export module ios {
UIGraphicsBeginImageContextWithOptions(originalImage.size, false, 0.0);
var context = UIGraphicsGetCurrentContext();
CGContextSaveGState(context);
CGContextTranslateCTM(context, 0.0, originalImage.size.width);
CGContextTranslateCTM(context, 0.0, originalImage.size.height);
CGContextScaleCTM(context, 1.0, -1.0);
originalImage.drawInRect(CGRectMake(0, 0, originalImage.size.width, originalImage.size.height))
CGContextRestoreGState(context);