Closed Bug 118387 Opened 23 years ago Closed 22 years ago

Bookmark Properties 'Description:' field should behave like normal text box

Categories

(SeaMonkey :: Bookmarks & History, defect, P3)

x86
Windows XP

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: mail124, Assigned: bugs)

Details

Attachments

(2 files, 2 obsolete files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.7+) Gecko/20020104 BuildID: 2002010403 When typing into the Description field of a bookmark's properties dialog, the text doesn't wrap to lower lines. Instead, a horizontal scrollbar forms and you just keep typing away on the same line. The description isn't even wrapped when you save the bookmark & reopen it. Also, hitting enter in the description field both inserts a carriage return and closes the properties window. Reproducible: Always Steps to Reproduce: 1. Open the properties dialog for a bookmark. 2. Type a long sentence into the Description: field. Notice it doesn't wrap text. 3. Hit enter somewhere in the middle of the sentence. The properties dialog will close. 4. Reopen the same properties dialog and see that a carriage return has been inserted where you pressed enter. Actual Results: Text doesn't wrap, and hitting enter does two things: inserting carriage return, and closing properties window. Expected Results: Text wraps as you type, or is wrapped upon saving the bookmark. Hitting enter does only one thing (probably close properties window).
The problem of Enter closing the dialog is bug 113146. Besides that, I think what you're describing in this bug is intended behaviour. Suggest WONTFIX.
I think wrapping would be better than horizontal scrolling, but that's just me. If it's intended behavior, then I would expect the description field to look just like the name and location fields, i.e. enough vertical space for only one line of text that's scrollable only by highlighting text or using left & right arrow keys. The way it's organized right now, two lines of text are visible even with a scrollbar, but putting more than two lines of text into the box doesn't pop up a vertical scrollbar (see attachment for example). If there's one scrollbar showing extra content horizontally (where cut-off sentences and words are pretty easily spotted), then there really should be a scrollbar showing extra vertical content (where you might have no idea that extra content exists). The bottom line is, the size of the Description field sets up an expectancy of normal textbox behavior, and that behavior isn't realized.
Resummarizing based on reporter's last comments.
Summary: Bookmark Properties 'Description:' field doesn't wrap text → Bookmark Properties 'Description:' field should behave like normal text box
Alright, it's my first foray into the source. I've found the following line which seems likely to be the culprit for this bug (once it's confirmed, ahem): http://lxr.mozilla.org/seamonkey/source/xpfe/components/bookmarks/resources/bm-props.xul#84 This line has: wrap="virtual" . . . Which should be something else. Other values I found in lxr include soft, hard, true, and flow. I dont' know which would apply, but I'll guess "true" or "hard". Second thing to mention: It would be a different bug (one that I haven't filed or searched for), but a nearly identical fix: http://lxr.mozilla.org/seamonkey/source/mailnews/addrbook/resources/content/abCardOverlay.xul#320 This points to the Notes textbox on the "Other" tab of an address card, which has the same "virtual" wrap properties, and (IMHO) shouldn't. Next time, maybe I'll work up to actually fixing the bug instead of just identifying where to fix it. But I hope this helps.
Joe: go ahead with the patch!
Status: UNCONFIRMED → NEW
Ever confirmed: true
I have not the slightest clue if this is valid format for a patch, but here it is, diffed off of bm-props.xul revision 1.45. I changed wrap="virtual" to wrap="soft", and added a cols="32" attribute. This is because of bug 50633, which turns wrap off if cols isn't specified, and makes wrap="soft" if cols is specified. Not an ideal solution, but the desired behavior should survive even when that bug is fixed.
carelessness . . . prior comments apply to this. The first had wrap="true" which might change behavior upon bug 50633 being fixed.
Keywords: patch, review
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.2
Im still having the same problems mentioned above, im using the latest nightly builds. having enter closing the dialog is not fixed yet and I have a lot of bookmarks and i would really like the description to have only vertical scrolling.
This is the diff-u format for the patch. The one-line change sets the description field of the bookmark properties to line-wrap. Cols attribute was added to bypass the wrapping limitation noted in bug 119915. Anyone reading, review would be nice. I've tested in the 1.0 branch with no prolems.
Attachment #71047 - Attachment is obsolete: true
Attachment #71049 - Attachment is obsolete: true
This bug is fixed, apparently as a consequence of bug 164641.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: