Open
Bug 745055
Opened 14 years ago
Updated 2 months ago
alertCheck is sized incorrectly when there is long text on the checkbox
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
REOPENED
People
(Reporter: mkaply, Unassigned)
Details
Attachments
(1 file)
|
68.70 KB,
image/png
|
Details |
See attachment.
If you have long text in the checkbox and long text in the prompt, the prompt wraps much sooner than the checkbox making the prompt look very strange.
Comment 1•14 years ago
|
||
Execute the following:
Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService).alertCheck(null, "Title of this Dialog", "Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. Hello! You have now been alerted. ", "And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox And this is a checkbox ", {value: false});
Regression window:
Last good:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9b3pre) Gecko/2008012904 Firefox/3.0b3pre ID:2008012904
First bad:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9b3pre) Gecko/2008013004 Firefox/3.0b3pre ID:2008013004
Bonsai log:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2008-01-29+00%3A00%3A00&maxdate=2008-01-30+06%3A00%3A00&cvsroot=%2Fcvsroot
| Reporter | ||
Comment 2•14 years ago
|
||
My wager would be
https://bugzilla.mozilla.org/show_bug.cgi?id=244273
| Reporter | ||
Comment 3•14 years ago
|
||
Yep, that causes it
https://bugzilla.mozilla.org/show_bug.cgi?id=244273#c42
The problem is this code:
#infoContainer {
max-width: 45em;
}
I assume they are setting a max-width so the auth dialog doesn't look weird.
But if they are going to force a max width on the info container, it needs to be on the checkbox as well.
| Reporter | ||
Comment 4•14 years ago
|
||
Yeah, here's the fix:
#infoContainer, #checkboxContainer {
max-width: 45em;
}
Comment 5•8 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INACTIVE
| Reporter | ||
Updated•8 years ago
|
Assignee: nobody → mozilla
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
| Reporter | ||
Comment 6•5 years ago
|
||
My fix doesn't work any more because the XUL isn't honoring the max-width parent above.
I still think this is an issue, but taking off my plate.
Assignee: mozilla → nobody
Updated•3 years ago
|
Severity: normal → S3
| Reporter | ||
Comment 7•2 months ago
|
||
Current recreation scenario:
Services.prompt.alertCheck(
null,
"Title",
"A".repeat(200) + " short prompt text that should wrap nicely within the dialog width when sized correctly.",
"B".repeat(200) + " long checkbox label that should also wrap at the same width as the prompt above it.",
{ value: false }
);
| Reporter | ||
Comment 8•2 months ago
|
||
For future reference:
diff --git a/toolkit/components/prompts/content/commonDialog.css b/toolkit/components/prompts/content/commonDialog.css
index d811fb62d502..1395fba2aeb4 100644
--- a/toolkit/components/prompts/content/commonDialog.css
+++ b/toolkit/components/prompts/content/commonDialog.css
@@ -25,10 +25,20 @@ dialog[insecureauth] {
align-self: start;
}
-#infoContainer {
+#infoContainer,
+#checkbox {
max-width: 45em;
}
+#checkbox .checkbox-label-box {
+ min-width: 0;
+}
+
+#checkbox .checkbox-label {
+ white-space: normal;
+ word-break: break-word;
+}
+
#infoTitle {
margin-bottom: 1em;
}
You need to log in
before you can comment on or make changes to this bug.
Description
•