Closed Bug 260931 Opened 20 years ago Closed 20 years ago

Common Dialog's checkbox does not wrap

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(2 files, 1 obsolete file)

The longest example I noticed of a checkbox in a common dialog prompt is the
mixed content show again label, "Alert me whenever I'm about to view an
encrypted page that contains some unencrypted information." This label is so
long that it needs to wrap to the 45em max-width set on the ancestor vbox. It
currently does not because it has been made inflexible to allow it to display
nicer focus ring and hover styles. Fortunately I have discovered a way to allow
it to flex without forcing it to flex.
Attached patch Proposed patch (obsolete) — Splinter Review
Assignee: guifeatures → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Attachment #159714 - Flags: superreview?(jag)
Attachment #159714 - Flags: review?(varga)
Comment on attachment 159714 [details] [diff] [review]
Proposed patch

Whoops, this breaks prompt() - need to think some more about this :-(
Attached patch Better patchSplinter Review
OK, so this fixes it because the hbox doesn't enforce a width on the checkbox,
expecting it to flex if it wants more (or less) width, while the vbox does
enforce the checkbox max width; the align="start" allows the checkbox to
shrink.
Attachment #159714 - Attachment is obsolete: true
Attachment #159715 - Flags: superreview?(jag)
Attachment #159715 - Flags: review?(varga)
Attachment #159714 - Flags: superreview?(jag)
Attachment #159714 - Flags: review?(varga)
Attachment #159715 - Flags: review?(varga) → review+
Comment on attachment 159715 [details] [diff] [review]
Better patch

sr=jag
Attachment #159715 - Flags: superreview?(jag) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Mozilla Application Suite
Attachment #169062 - Flags: review?(mconnor) → review+
Comment on attachment 169062 [details] [diff] [review]
toolkit port (checked in)

Checking in toolkit/content/commonDialog.xul;
/cvsroot/mozilla/toolkit/content/commonDialog.xul,v  <--  commonDialog.xul
new revision: 1.5; previous revision: 1.4
done
Attachment #169062 - Attachment description: toolkit port → toolkit port (checked in)
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: