Skip to content

Commit

Permalink
Remove redundant UWP code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Nov 30, 2024
1 parent 1aa1c91 commit 74b2d5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions www/js/lib/popovers.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,8 @@ function createNewKiwixPopoverCointainer (win, anchor, event) {
// Initially position the div 20px above the link
const spacing = 20;
let triangleDirection = 'top';
const divOffsetHeight = /UWP/.test(params.appType) ? div.offsetHeight / zoomFactor + spacing : div.offsetHeight + spacing;
let divOffsetHeight = div.offsetHeight + spacing;
let divRectY = linkRect.top - divOffsetHeight;
if (/UWP/.test(params.appType)) divRectY = divRectY * 100 / params.relativeFontSize;
let triangleY = divHeight + 6;
// If we're less than half margin from the top, move the div below the link
if (divRectY < margin / 2) {
Expand Down

0 comments on commit 74b2d5a

Please sign in to comment.