|
@@ -2620,11 +2620,19 @@
|
|
if(!noteCardHeader.length) return;
|
|
if(!noteCardHeader.length) return;
|
|
let resultTop = (noteCardHeader.offset().top + noteCardHeader.outerHeight(true)) - $(window).scrollTop();
|
|
let resultTop = (noteCardHeader.offset().top + noteCardHeader.outerHeight(true)) - $(window).scrollTop();
|
|
if(resultTop <= 55) {
|
|
if(resultTop <= 55) {
|
|
|
|
+ @if(!$note->is_signed_by_hcp)
|
|
tree.addClass('fixed');
|
|
tree.addClass('fixed');
|
|
rhsSidebar.addClass('fixed');
|
|
rhsSidebar.addClass('fixed');
|
|
|
|
+ @else
|
|
|
|
+ tree.addClass('fixed-left');
|
|
|
|
+ @endif
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
|
|
+ @if(!$note->is_signed_by_hcp)
|
|
tree.removeClass('fixed');
|
|
tree.removeClass('fixed');
|
|
|
|
+ @else
|
|
|
|
+ tree.removeClass('fixed-left');
|
|
|
|
+ @endif
|
|
tree.css('height', 'calc(100vh - ' + resultTop + 'px)');
|
|
tree.css('height', 'calc(100vh - ' + resultTop + 'px)');
|
|
tree.css('max-height', 'calc(100vh - ' + resultTop + 'px)');
|
|
tree.css('max-height', 'calc(100vh - ' + resultTop + 'px)');
|
|
rhsSidebar.removeClass('fixed');
|
|
rhsSidebar.removeClass('fixed');
|