Skip to content
Snippets Groups Projects
Commit 56b4a2a8 authored by anisa kusumadewi's avatar anisa kusumadewi
Browse files

Fixed Problem:

remove fixed toolbar if notifications shown
parent 04444d04
No related branches found
No related tags found
No related merge requests found
...@@ -1060,8 +1060,9 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to ...@@ -1060,8 +1060,9 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
// Calculate again in case contentHeight was 1 (because content wasn't loaded yet?) // Calculate again in case contentHeight was 1 (because content wasn't loaded yet?)
contentHeight = $('#content-wrapper').height(); contentHeight = $('#content-wrapper').height();
bottom = contentTop + contentHeight - fixedTop - toolbarHeight; bottom = contentTop + contentHeight - fixedTop - toolbarHeight;
var notifications = $('#user-notifications').children();
if (y >= top + 1 - fixedTop && y < bottom - 50) { if (y >= top + 1 - fixedTop && y < bottom - 50 && !notifications) {
$('#pdftoolbar').addClass('fixtool'); $('#pdftoolbar').addClass('fixtool');
$('#pdftoolbar').width(width); $('#pdftoolbar').width(width);
document.getElementById("pdftoolbar").style.top = fixedTop + "px"; document.getElementById("pdftoolbar").style.top = fixedTop + "px";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment