Closed Bug 1476084 Opened 8 years ago Closed 7 years ago

Set minwidth / minheight / maxwidth / maxheight on the payment dialog to prevent resizing

Categories

(Firefox :: WebPayments UI, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jaws, Unassigned)

References

Details

Attachments

(2 files)

To prevent the payments dialog from being resizable on Linux, we can set the min- and max-{width/height} to the size of the dialog after opening.
Whiteboard: [webpayments-reserve]
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Priority: P3 → P1
Whiteboard: [webpayments-reserve] → [webpayments]
Comment on attachment 8992450 [details] Bug 1476084 - Set min and max widths and heights for the payment dialog to prevent the dialog from being resizable. https://reviewboard.mozilla.org/r/257316/#review264226 ::: browser/components/payments/content/paymentDialogWrapper.js:467 (Diff revision 1) > + let docElement = document.documentElement; > + let windowRect = docElement.getBoundingClientRect(); > + docElement.setAttribute("minwidth", windowRect.width); > + docElement.setAttribute("maxwidth", windowRect.width); > + docElement.setAttribute("minheight", windowRect.height); > + docElement.setAttribute("maxheight", windowRect.height); Is this working around resizable=no working on Linux? Why not get that fixed instead? This seems kinda hacky. https://dxr.mozilla.org/mozilla-central/rev/085cdfb90903d4985f0de1dc7786522d9fb45596/browser/components/payments/paymentUIService.js#51
Can we fix the form layout before we land this? Resizing the dialog is the only way to make the address and cc forms usable currently on Linux.
(In reply to Sam Foster [:sfoster] from comment #3) > Can we fix the form layout before we land this? Resizing the dialog is the > only way to make the address and cc forms usable currently on Linux. Even after I made the pages scrollable?
The credit card form is actually ok. But the address form is pretty awkward currently.
Yeah, we can wait to make the form layout more usable before we fix the resizing. This work is done right now to investigate how much work it would be if we continue down this path. With the patch applied, the scrollbars still work, though they aren't so easy to find if you don't know they are there.
Assignee: jaws → nobody
Status: ASSIGNED → NEW
Priority: P1 → P3
Whiteboard: [webpayments] → [webpayments-reserve]
See Also: → 497401
Comment on attachment 8992450 [details] Bug 1476084 - Set min and max widths and heights for the payment dialog to prevent the dialog from being resizable. https://reviewboard.mozilla.org/r/257316/#review264470 See comment 2 and bug 497401.
Attachment #8992450 - Flags: review?(MattN+bmo)
After comparing the breakdown of window modal vs. tab modal, the current plan is to use a Tab Modal dialog since the level of effort is similar and tab modal is a much better UX.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Priority: P3 → --
Whiteboard: [webpayments-reserve]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: