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)
Firefox
WebPayments UI
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.
Updated•8 years ago
|
Whiteboard: [webpayments-reserve]
| Reporter | ||
Updated•8 years ago
|
Assignee: nobody → jaws
Status: NEW → ASSIGNED
| Reporter | ||
Updated•8 years ago
|
Priority: P3 → P1
| Comment hidden (mozreview-request) |
Updated•8 years ago
|
Whiteboard: [webpayments-reserve] → [webpayments]
Comment 2•8 years ago
|
||
| mozreview-review | ||
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
Comment 3•8 years ago
|
||
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.
Comment 4•8 years ago
|
||
(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?
Comment 5•8 years ago
|
||
The credit card form is actually ok. But the address form is pretty awkward currently.
| Reporter | ||
Comment 6•8 years ago
|
||
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.
Updated•8 years ago
|
Assignee: jaws → nobody
Status: ASSIGNED → NEW
Priority: P1 → P3
Whiteboard: [webpayments] → [webpayments-reserve]
Comment 7•8 years ago
|
||
| mozreview-review | ||
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)
Comment 8•7 years ago
|
||
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
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•