Sidebar - bug fix; closes 3653

third party bug fix and source code improved
This commit is contained in:
opnsenseuser 2019-08-18 00:28:15 +02:00 committed by Franco Fichtner
parent 6c4b880705
commit 090f94c04e

View File

@ -51,8 +51,6 @@ $(document).ready(function () {
var that = $(this);
if (that.next('div').hasClass('in')) {
/* no action needed */
} else if ((that.next().is('a')) || (that.is('a:last-child'))) {
close_submenu(this);
} else {
var offsetTop = that.offset().top;
var winscrTop = $window.scrollTop();
@ -60,6 +58,7 @@ $(document).ready(function () {
var divTop = (offsetTop - winscrTop);
var currentHeight = (divTop + divHeight);
var thatTrigger = that.trigger('click');
close_submenu(this);
if (currentHeight > winHeight) {
var result = that.next('div').css('margin-top', -divHeight - (that.is(layer1_a) ? 3 : 0));
}