Skip to content

Commit

Permalink
#26 Headers and Footers
Browse files Browse the repository at this point in the history
- iPhone 6 Plus compatibility
  • Loading branch information
EddyVerbruggen committed Jan 5, 2015
1 parent d0fb898 commit 5acc18d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="com.telerik.plugins.nativepagetransitions"
version="0.2.8">
version="0.2.9">

<name>Native Page Transitions</name>

Expand Down
3 changes: 2 additions & 1 deletion src/ios/NativePageTransitions.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
@implementation NativePageTransitions

#define IS_RETINA_DISPLAY() [[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2.0f
#define DISPLAY_SCALE IS_RETINA_DISPLAY() ? 2.0f : 1.0f
#define IS_RETINA_HD_DISPLAY() [[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 3.0f
#define DISPLAY_SCALE IS_RETINA_HD_DISPLAY() ? 3.0f : (IS_RETINA_DISPLAY() ? 2.0f : 1.0f)

- (CDVPlugin*) initWithWebView:(UIWebView*)theWebView {
self = [super initWithWebView:theWebView];
Expand Down

0 comments on commit 5acc18d

Please sign in to comment.