Closed
Bug 262639
Opened 20 years ago
Closed 20 years ago
width of caret can only be changed for single-line fields and not for multi-line fields using preferences
Categories
(Core Graveyard :: GFX, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 261054
People
(Reporter: poser-, Unassigned)
References
Details
Attachments
(1 file)
1.73 KB,
patch
|
roc
:
review-
roc
:
superreview-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 Because of a missing entry in nsXPLookAndFeel.cpp for eMetric_MultiLineCaretWidth, width of caret in multi-line textboxes can't be changed using the preferences window. The width of the caret in single-line textboxes can be changed using the ui.caretWidthTwips Key in the about:config preferences window. Reproducible: Always Steps to Reproduce: 1. open about:config 2. add a new integer-key ui.caretWidthTwips with value 3 3. open any website with a html-form with a single-line textbox and a multiline-textbox (eg. bugzilla) 4. place the cursor in the single-line textbox 5. place it in the multi-line textbox Actual Results: 4. place the cursor in the single-line textbox => it has 3 pixel width (as defined in preferences) 5. place it in the multi-line textbox => 1 or 2 pixel width (depending on OS) Expected Results: either width of both carets should be changed or a second key should be available to change the size of the multi-line caret as well The reason about the bug is, that the size of the single-line caret is defined as 1 pixel width, while its defined as 2 pixel width for multi-line fields for no apparant reason for Win32. So it's not possible to change them both in an easy way to 1 pixel width.
Comment 1•20 years ago
|
||
Updated•20 years ago
|
Attachment #161170 -
Flags: superreview?(roc)
Attachment #161170 -
Flags: review?(roc)
Updated•20 years ago
|
Summary: width of caret can only be changed for single-line fields and not for multi-line fields using preferences → width of caret can only be changed for single-line fields and not for multi-line fields using preferences
Comment on attachment 161170 [details] [diff] [review] Patch { "ui.caretWidthTwips", eMetric_SingleLineCaretWidth, PR_FALSE, nsLookAndFeelTypeInt, 0 }, + { "ui.caretWidthTwips", eMetric_MultiLineCaretWidth, PR_FALSE, nsLookAndFeelTypeInt, 0 }, bz, you meant adding a different key to allow separate settings, no? Might be best to have "ui.caretSingleLineWidthTwips" "ui.caretMultiLineWidthTwips"
Comment 3•20 years ago
|
||
No, I pretty purposefully used the same key, figuring that people just want to set the caret width. I can set different keys, but in that case we should rename them too, since the width is not, in fact, in twips.
OK, I see. Since "Twips" is wrong and the value is in fact in pixels, why don't you go ahead an rename that name "ui.caretWidthTwips" to "ui.caretWidth" in parity with the nearby "ui.dragThresholdX", "ui.dragThresholdY", etc? It occurs in just one file in the tree. And this is the only bug where I have seen a use of that pref. I assume that not many people will be affected by the change.
Comment 5•20 years ago
|
||
Well, the pref is also publicised on http://www.mozilla.org/unix/customizing.html (but a google search shows pretty much no other hits -- just http://www.mozilla-japan.org/unix/customizing.html If we fix the mozilla.org page and mail the mozilla-japan folks, I think this is a reasonable change... any objections?
Comment on attachment 161170 [details] [diff] [review] Patch Looks like there'll be a new patch here...
Attachment #161170 -
Flags: superreview?(roc)
Attachment #161170 -
Flags: superreview-
Attachment #161170 -
Flags: review?(roc)
Attachment #161170 -
Flags: review-
Comment 7•20 years ago
|
||
This is no longer necessary. As discussed in bug 261054 we should have only 1 caret width ever. Can we close this as WONTFIX?
Comment 8•20 years ago
|
||
Marking DUP as suggest by rbs. The other bug will take care of this problem by having the same caret width at all times. *** This bug has been marked as a duplicate of 261054 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•