After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 399018 - Notes entry pane does not wrap text
Notes entry pane does not wrap text
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File Properties Dialog
2.16.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-21 13:47 UTC by Aiman Baharna
Modified: 2009-07-09 18:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Patch to make the Properties->Notes dialog wrap text properly. (502 bytes, patch)
2009-07-09 05:05 UTC, Luke Symes
committed Details | Review

Description Aiman Baharna 2007-01-21 13:47:31 UTC
Please describe the problem:
Instead of wrapping text when it reaches the end of a line, the File Properties dialog actually becomes wider as each new character is entered. This behavior is not apparent when cut-and-pasting, only when actually typing.

Steps to reproduce:
1. Right click a file in Nautilus and select Properties.
2. Activate the Notes tab.
3. Start writing text, do not cut and paste.



Actual results:
At the end of the line, the window will grow in width, and continue to grow in width. At some point the words will wrap, but if this process is continued on the next line, the window continues to grow in width.

Expected results:
The text in the Notes area should wrap automatically. No manual line breaks should be required to wrap text. Line breaks should only indicate a new paragraph.

Does this happen every time?
Yes.

Other information:
Comment 1 Luke Symes 2009-07-09 05:05:10 UTC
Created attachment 138098 [details] [review]
Patch to make the Properties->Notes dialog wrap text properly.

Here is a patch which solves this issue for me on Ubuntu 9.04 with Nautilus 2.26.2. It is a one-liner which turns on automatic horizontal scrolling, which in turn causes the text to wrap properly. A horizontal scrollbar will appear in Properties->Notes & Sidebar->Notes only when a word is bigger than the visible area, as opposed to never. Previously the properties dialog would resize if possible, and the sidebar would float off into space without a scrollbar.
Comment 2 Cosimo Cecchi 2009-07-09 18:07:11 UTC
Thanks for the patch, committed to master.

commit fd9df908248be20bc5f79def1dd96a45bb9f56c8
Author: Cosimo Cecchi <cosimoc@gnome.org>
Date:   Thu Jul 9 19:03:34 2009 +0100

    Don't force no horizontal scrollbar in the note viewer
    
    This causes issues with long words in the notes viewer, as the window
    will grow bigger along with the word.
    Patch by Luke Symes, fix bug #399018.