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 335012 - gtkcellrenderertext - gtkeditable: bad interaction when ypad is set to hi value
gtkcellrenderertext - gtkeditable: bad interaction when ypad is set to hi value
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.8.x
Other All
: Normal minor
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2006-03-18 16:16 UTC by nastasi
Modified: 2011-02-04 16:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
proposed patch (1.71 KB, patch)
2006-05-28 01:16 UTC, Kristian Rietveld
none Details | Review

Description nastasi 2006-03-18 16:16:50 UTC
Please describe the problem:
If a middle aligned text well showed with a gtkcellrenderertext is clicked to
edit all the cell become a big editable cell with the text pushed at the top of
the cell and a big unusable white space under.

Steps to reproduce:
1. Set the ypad property of a editable gtkcellrenderertext to a high value (> 10
for example), 
2. Click to edit it.

Actual results:
You view the bad effect.

Expected results:
1) That the text don't move up.
2) The editable cell follow the dimension of the font and not the dimension of
the cell.

Does this happen every time?
Yes.

Other information:
These are two snapshots to show the problem.
   http://www.alternativeoutput.it/img/treeview_normal.png
and
   http://www.alternativeoutput.it/img/treeview_editing.png
Comment 1 Kristian Rietveld 2006-05-28 01:15:59 UTC
Just happened to fix this earlier today.  Main problem here is that GtkEntry is really constrained to a text area of a single line, the rest of the editable area has some drawing glitches (note the area below the editable text in your second screenshot).
Comment 2 Kristian Rietveld 2006-05-28 01:16:46 UTC
Created attachment 66354 [details] [review]
proposed patch
Comment 3 Kristian Rietveld 2006-07-18 13:34:08 UTC
Fixed on HEAD with an additional modification for the text renderer.
Comment 4 Sebastien Bacher 2006-07-18 14:23:27 UTC
*** Bug 345591 has been marked as a duplicate of this bug. ***