Skip to content

Commit

Permalink
FIX inverted height and width
Browse files Browse the repository at this point in the history
Width and height were inverted.
  • Loading branch information
pecheriere committed Oct 21, 2015
1 parent f536b40 commit 5bfea1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/RCTMapboxGL/RCTMapboxGLManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
pin.annotationImageURL = annotationImageURL;
pin.annotationImageSize = annotationImageSize;
}
Expand All @@ -220,7 +220,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
point.annotationImageURL = annotationImageURL;
point.annotationImageSize = annotationImageSize;
}
Expand Down Expand Up @@ -422,7 +422,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
pin.annotationImageURL = annotationImageURL;
pin.annotationImageSize = annotationImageSize;
}
Expand All @@ -444,7 +444,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
point.annotationImageURL = annotationImageURL;
point.annotationImageSize = annotationImageSize;
}
Expand Down

0 comments on commit 5bfea1e

Please sign in to comment.