Skip to content

Commit

Permalink
Fix TextView layout for iOS in the cordova demo
Browse files Browse the repository at this point in the history
Don't use "bottom" property on the TextViews, because they get
vertically centered on iOS by default.

Change-Id: I2aa1f0bc69ead05ed85d7c687d3bf3851547b16f
  • Loading branch information
cpetrov committed Feb 13, 2015
1 parent 49bf796 commit 0cb7384
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/cordova/modules/DialogPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var page = new PluginPage("Dialog", "org.apache.cordova.dialogs", function(paren
});

var textView = tabris.create("TextView", {
layoutData: {top: [buttonBeep, 20], left: 20, right: 20, bottom: 20}
layoutData: {top: [buttonBeep, 20], left: 20, right: 20}
}).appendTo(parent);
});

Expand Down
2 changes: 1 addition & 1 deletion examples/cordova/modules/MotionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var page = new PluginPage("Motion", "org.apache.cordova.device-motion", function
});

var textView = tabris.create("TextView", {
layoutData: {top: [buttonStopWatch, 20], left: 20, right: 20, bottom: 20}
layoutData: {top: [buttonStopWatch, 20], left: 20, right: 20}
}).appendTo(parent);
});

Expand Down
2 changes: 1 addition & 1 deletion examples/cordova/modules/NetworkPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var page = new PluginPage("Network", "org.apache.cordova.network-information", f
});

var textView = tabris.create("TextView", {
layoutData: {top: [button, 20], left: 20, right: 20, bottom: 20}
layoutData: {top: [button, 20], left: 20, right: 20}
}).appendTo(parent);
});

Expand Down

0 comments on commit 0cb7384

Please sign in to comment.