Skip to content

Commit

Permalink
fix(config): set the properties for each mode and add defaults
Browse files Browse the repository at this point in the history
closes #6132
  • Loading branch information
brandyscarney committed Jun 1, 2016
1 parent 78ffe0e commit 7def98c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tabs/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export class Tabs extends Ion {
super(_elementRef);
this.parent = parent;
this.id = ++tabIds;
this.subPages = _config.getBoolean('tabSubPages');
this._useHighlight = _config.getBoolean('tabbarHighlight');
this.subPages = _config.getBoolean('tabSubPages', false);
this._useHighlight = _config.getBoolean('tabbarHighlight', false);
this._sbPadding = _config.getBoolean('statusbarPadding', false);

if (parent) {
Expand Down
5 changes: 5 additions & 0 deletions src/config/modes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ Config.setModeConfig('ios', {

spinner: 'ios',

tabbarHighlight: false,
tabbarPlacement: 'bottom',

tabSubPages: false,

toastEnter: 'toast-slide-in',
toastLeave: 'toast-slide-out',
});
Expand Down Expand Up @@ -72,6 +75,7 @@ Config.setModeConfig('md', {

pickerEnter: 'picker-slide-in',
pickerLeave: 'picker-slide-out',
pickerRotateFactor: 0,

popoverEnter: 'popover-md-pop-in',
popoverLeave: 'popover-md-pop-out',
Expand Down Expand Up @@ -116,6 +120,7 @@ Config.setModeConfig('wp', {

pickerEnter: 'picker-slide-in',
pickerLeave: 'picker-slide-out',
pickerRotateFactor: 0,

popoverEnter: 'popover-md-pop-in',
popoverLeave: 'popover-md-pop-out',
Expand Down

0 comments on commit 7def98c

Please sign in to comment.