Skip to content

Commit 3799c3a

Browse files
author
Nick Wientge
committed
Merge pull request #212 from lucavandro/patch-1
Update ionHeaderBar.js
2 parents 6c9aceb + 93c92cb commit 3799c3a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

components/ionHeaderBar/ionHeaderBar.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ IonHeaderBar = {
2727
var leftButtonWidth = 0;
2828
var rightButtonWidth = 0;
2929
if ($leftButton.length) {
30-
leftButtonWidth = $leftButton.outerWidth();
30+
$leftButton.each(function(index, element){
31+
leftButtonWidth += $(element).outerWidth();
32+
});
3133
}
3234
if ($rightButton.length) {
33-
rightButtonWidth = $rightButton.outerWidth();
35+
$rightButton.each(function(index, element){
36+
rightButtonWidth += $(element).outerWidth();
37+
});
3438
}
3539

3640
// If we're on Android, we only care about the left button

0 commit comments

Comments
 (0)