Closed Bug 1989304 Opened 9 months ago Closed 9 months ago

The comment dialog is spilling out of the viewport when the dialog is opened at the edge of the viewport

Categories

(Firefox :: PDF Viewer, defect, P1)

defect

Tracking

()

VERIFIED FIXED
145 Branch
Tracking Status
firefox145 --- verified

People

(Reporter: rpopovici, Assigned: calixte)

References

Details

Attachments

(3 files)

Found in:
Nightly 145.0a1(2025-09-18)

Affected versions:
Nightly 145.0a1(2025-09-18)

Tested platforms:

Affected platforms: macOS 13.2.1, Ubuntu 24.10, Windows 10
Unaffected platforms:

Steps to reproduce:

  1. Load a PDF
  2. Select any length of text at the edge of the viewport/window.
  3. Click the "Comment" button under the text selection.

Expected result:
The 'Add Comment' dialog is displayed in the viewport regardless of window size.

Actual result:
When the dialog is opened at the edge of the viewport(window), the 'Add Comment' dialog spills out of the viewport. Please see the screenshot.

Regression range:
This is not a regression; it is a bug related to the new implementation of the PDF comments.

Additional notes:
The 'Add Comment' box should remain properly positioned when the browser is resized. The user should not scroll the page to reach 'Save'
button or the 'Add comment' dialog to be fully visible.

Blocks: 1989310
Summary: The comment box is partially hidden when the Firefox browser window is not maximized → The comment box is partially cut off when the Firefox browser window is not maximized
QA Whiteboard: [QA-4345][qa-found-in-c145]
QA Whiteboard: [QA-4345][qa-found-in-c145] → [QA-4345][qa-found-in-c145][S3]
Summary: The comment box is partially cut off when the Firefox browser window is not maximized → The comment box is partially cut off when the dialog is opened at the edge of the viewport
Summary: The comment box is partially cut off when the dialog is opened at the edge of the viewport → The comment dialog is spill out of the viewportnwhen the dialog is opened at the edge of the viewport
Summary: The comment dialog is spill out of the viewportnwhen the dialog is opened at the edge of the viewport → The comment dialog is spilling out of the viewport when the dialog is opened at the edge of the viewport
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: -- → P1
Depends on: 1991193
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

Verified on the latest Nightly 145.0a1 (2025-10-02). Sometimes, when the Firefox window is resized, highlighting text on the left side of the PDF and opening the 'Add Comment' dialog causes the dialog to disappear after resizing the window again. When this happens, I can’t scroll the PDF to the left to bring the dialog back into view. Please see the attached screen recording.
Do you think we should reopen this issue or log another one?

Flags: needinfo?(cdenizet)

It isn't easy to reproduce but I managed too.
Could you file a new bug please ?

Flags: needinfo?(cdenizet)

Hello Calixte,
I reported a new issue for this: https://bugzilla.mozilla.org/show_bug.cgi?id=1992358

Verified as fixed in Nightly 145(2025-10-02) using MacOS 13.2.1, Windows 11 and Ubuntu 24.

Status: RESOLVED → VERIFIED
No longer depends on: 2039544
No longer depends on: 2039755
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: