Merge pull request #212 from lucavandro/patch-1

Update ionHeaderBar.js
This commit is contained in:
Nick Wientge 2015-06-17 09:00:28 -07:00
commit 3799c3a666

View file

@ -27,10 +27,14 @@ IonHeaderBar = {
var leftButtonWidth = 0;
var rightButtonWidth = 0;
if ($leftButton.length) {
leftButtonWidth = $leftButton.outerWidth();
$leftButton.each(function(index, element){
leftButtonWidth += $(element).outerWidth();
});
}
if ($rightButton.length) {
rightButtonWidth = $rightButton.outerWidth();
$rightButton.each(function(index, element){
rightButtonWidth += $(element).outerWidth();
});
}
// If we're on Android, we only care about the left button