js/foundation/foundation.topbar.js in zurb-foundation-4.3.0 vs js/foundation/foundation.topbar.js in zurb-foundation-4.3.1
- old
+ new
@@ -4,11 +4,11 @@
'use strict';
Foundation.libs.topbar = {
name : 'topbar',
- version : '4.3.0',
+ version: '4.3.1',
settings : {
index : 0,
stickyClass : 'sticky',
custom_back_text: true,
@@ -159,11 +159,11 @@
} else {
section.css({right: -(100 * topbar.data('index')) + '%'});
section.find('>.name').css({right: 100 * topbar.data('index') + '%'});
}
- topbar.css('height', self.outerHeight($this.siblings('ul'), true) + self.outerHeight(titlebar, true));
+ topbar.css('height', self.outerHeight($this.siblings('ul'), true) + self.height(titlebar));
}
});
$(window).on('resize.fndtn.topbar', function () {
if (!self.breakpoint()) {
@@ -207,10 +207,10 @@
}
if (topbar.data('index') === 0) {
topbar.css('height', '');
} else {
- topbar.css('height', self.outerHeight($previousLevelUl, true) + self.outerHeight(titlebar, true));
+ topbar.css('height', self.outerHeight($previousLevelUl, true) + self.height(titlebar));
}
setTimeout(function () {
$movedLi.removeClass('moved');
}, 300);