mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
Sidebar - bug fix; closes 3653
third party bug fix and source code improved
This commit is contained in:
parent
6c4b880705
commit
090f94c04e
@ -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));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user