Open Bug 1701109 Opened 3 years ago Updated 3 years ago

Cleanup nsIWidget::SetSizeConstraints() to better deal with multi-screen scaling factor issues

Categories

(Core :: Widget: Cocoa, enhancement, P2)

Desktop
macOS
enhancement

Tracking

()

People

(Reporter: haik, Unassigned)

Details

(Whiteboard: [mac:multimonitor])

Attachments

(1 obsolete file)

The fix for bug 1689682 will be adding an mScale field to the SizeConstraints struct. See https://bugzilla.mozilla.org/show_bug.cgi?id=1689682#c24 for an explanation of the problem requiring the widget to be passed the scaling factor used to calculate constraints.

This should be fixed in a better way. With the fix for bug 1689682, the scaling factor is not used by nsIWidget::ConstrainSize() and only the Mac widget makes use of it. It might be cleaner to do away with mScale and store the constraints in desktop pixels.

Attachment #9212948 - Attachment is obsolete: true
Severity: -- → S3
Priority: -- → P2
Whiteboard: [mac:multimonitor]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: