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 688472 - TextView inside ScrolledWindow: inconsistent behaviour for hscrollbar policy NEVER
TextView inside ScrolledWindow: inconsistent behaviour for hscrollbar policy ...
Status: RESOLVED DUPLICATE of bug 172470
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-11-16 15:50 UTC by Manuel Quiñones
Modified: 2014-04-02 22:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
TestCase (692 bytes, application/octet-stream)
2012-11-16 15:50 UTC, Manuel Quiñones
Details

Description Manuel Quiñones 2012-11-16 15:50:38 UTC
Created attachment 229142 [details]
TestCase

There is a inconsistent behaviour in this conditions:

 - a GtkTextView is inside a GtkScrolledWindow
 - the text view wrap mode is GTK_WRAP_WORD_CHAR
 - the scrollbar horizontal policy is GTK_POLICY_NEVER

If the user types a long word, for example pressing many times the same character until the text reaches the right side of the widget, the scrolled starts to resize.  After an arbitrary number of characters, the text starts a second line and then resize the widget a bit more.

If the horizontal policy is changed by GTK_POLICY_AUTOMATIC, the text wraps ok.

I attach a testcase using the Python bindings.
Comment 1 Sébastien Wilmet 2014-04-02 22:29:14 UTC

*** This bug has been marked as a duplicate of bug 172470 ***