mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(headerBarView): find title by class, not h1 tag
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
// Once we encounter a titleEl, realize we are now counting the right-buttons, not left
|
||||
for(i = 0; i < childNodes.length; i++) {
|
||||
c = childNodes[i];
|
||||
if (c.tagName && c.tagName.toLowerCase() == 'h1') {
|
||||
if (c.classList && c.classList.contains('title')) {
|
||||
isCountingRightWidth = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user