mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[Editor] Tweak few values after review from UX
This commit is contained in:
parent
34506f8874
commit
b5d18006a7
5 changed files with 38 additions and 33 deletions
|
@ -135,7 +135,7 @@ class AltTextManager {
|
|||
const isLTR = this.#uiManager.direction === "ltr";
|
||||
|
||||
let left = null;
|
||||
let top = Math.max(0, y - MARGIN);
|
||||
let top = y;
|
||||
top += Math.min(windowH - (top + dialogH), 0);
|
||||
|
||||
if (isLTR) {
|
||||
|
@ -153,7 +153,7 @@ class AltTextManager {
|
|||
|
||||
if (left === null) {
|
||||
top = null;
|
||||
left = Math.max(0, x - MARGIN);
|
||||
left = x;
|
||||
left += Math.min(windowW - (left + dialogW), 0);
|
||||
if (y > dialogH + MARGIN) {
|
||||
top = y - dialogH - MARGIN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue