Closed Bug 1643343 Opened 5 years ago Closed 5 years ago

The OpenPGP key details dialog doesn't properly adjust its size after enabling elements

Categories

(MailNews Core :: Security: OpenPGP, defect, P1)

Tracking

(thunderbird_esr78 fixed, thunderbird80 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
thunderbird_esr78 --- fixed
thunderbird80 --- fixed

People

(Reporter: KaiE, Assigned: aleca)

References

Details

(Keywords: ux-efficiency)

Attachments

(1 file)

mail/extensions/openpgp/content/ui/keyDetailsDlg.xhtml
mail/extensions/openpgp/content/ui/keyDetailsDlg.js

The dialog has optional elements, such as a list of alternative IDs.
I regularly saw the dialog opening wits its lower area cut off, and the OK button not being visible.

How can we properly resize its contents?
I'd appreciate help or a patch, thanks in advance.

If you need a test key with alternative user IDs, you may use mine:
https://kuix.de/pgpkey.txt

Alessandro, this might an important issue.
Do you have an idea how to fix it?

Assignee: nobody → alessandro
Flags: needinfo?(alessandro)

I see my key isn't the best to reproduce it. But you could use the following, which has multiple IDs:
CBCD8F030588653EEDD7E2659B7DD433F254904A
(Use OpenPGP key manager, keyserver, discover online, and past this fingerprint.)

The dialog should resize to accommodate all the elements, and if the sum of the elements is taller than the available window, a scrollbar should appear.
I'll take a look at this, thanks for providing the test keys.

Flags: needinfo?(alessandro)
Status: NEW → ASSIGNED
Keywords: ux-efficiency
Priority: -- → P1
See Also: → 1656530

This takes care of properly resizing the dialog when the data changes.
I also updated the style of that section to make it look consistent and more digestible.

Attachment #9168898 - Flags: review?(kaie)

Comment on attachment 9168898 [details] [diff] [review]
1643343-openpgp-dialog.diff

Thank you, works great!

Attachment #9168898 - Flags: review?(kaie) → review+

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/865f2cebb8f1
Fix the OpenPGP Key details dialog not resizing to fit all available elements. r=KaiE DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Comment on attachment 9168898 [details] [diff] [review]
1643343-openpgp-dialog.diff

OpenPGP UI correctness, no risk

Attachment #9168898 - Flags: approval-comm-esr78?
Attachment #9168898 - Flags: approval-comm-beta?

Comment on attachment 9168898 [details] [diff] [review]
1643343-openpgp-dialog.diff

[Triage Comment]
Approved for beta

Approved for esr78

Attachment #9168898 - Flags: approval-comm-esr78?
Attachment #9168898 - Flags: approval-comm-esr78+
Attachment #9168898 - Flags: approval-comm-beta?
Attachment #9168898 - Flags: approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: