Plugin Directory

Changeset 3329829


Ignore:
Timestamp:
07/17/2025 03:52:12 PM (8 months ago)
Author:
santoshtmp7
Message:

update y-axis citation popup

Location:
citation-note
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • citation-note/tags/1.0.0/assets/js/citation-note.js

    r3317093 r3329829  
    2626      }
    2727      // Prevent bottom overflow
    28       const bottomEdge = top + popupHeight;
    29       if (bottomEdge > window.scrollY + window.innerHeight) {
    30         top = window.scrollY + rect.top - popupHeight - 6; // show above the reference
    31       }
     28      // const bottomEdge = top + popupHeight;
     29      // if (bottomEdge > window.scrollY + window.innerHeight) {
     30      //   top = window.scrollY + rect.top - popupHeight - 6; // show above the reference
     31      // }
    3232      popup.style.top = top + "px";
    3333      popup.style.left = left + "px";
  • citation-note/trunk/assets/js/citation-note.js

    r3317114 r3329829  
    2626      }
    2727      // Prevent bottom overflow
    28       const bottomEdge = top + popupHeight;
    29       if (bottomEdge > window.scrollY + window.innerHeight) {
    30         top = window.scrollY + rect.top - popupHeight - 6; // show above the reference
    31       }
     28      // const bottomEdge = top + popupHeight;
     29      // if (bottomEdge > window.scrollY + window.innerHeight) {
     30      //   top = window.scrollY + rect.top - popupHeight - 6; // show above the reference
     31      // }
    3232      popup.style.top = top + "px";
    3333      popup.style.left = left + "px";
Note: See TracChangeset for help on using the changeset viewer.