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 662368 - vertical alignment problem
vertical alignment problem
Status: RESOLVED NOTABUG
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2011-10-21 06:18 UTC by Andreas J. Guelzow
Modified: 2011-10-21 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas J. Guelzow 2011-10-21 06:18:22 UTC
new gnumeric
C3: "Hello World"
make sure the width of column C is less than the length of "Hello World"
select C3
Format->cell->format->alignment
choose "Wrap Text" okay
decrease the height of row 3
note that the content of row 3 is aligned at the top
Format->cell->format->alignment
note that the cell content should be aligned at the bottom

Toggling the vertical alignment does not change anything. 

It seems that vertical alignemnt is only effective if the cell height is larger than the content. It should also affect the placement when it is smaller (as in the case of horizontal alignment).
Comment 1 Andreas J. Guelzow 2011-10-21 07:04:27 UTC
According to the code:
	case VALIGN_TOP:
		text_base = rect_y;
		break;

	case VALIGN_BOTTOM: {
		int dh = height - rv->layout_natural_height;
		if (rv->rotation == 0 && dh < 0)
			dh = 0;
		text_base = rect_y + y_direction * dh;
		break;
	}
this behaviour seems to be desired!

Is this a case of "Excel behaves like this"?
Comment 2 Morten Welinder 2011-10-21 18:10:16 UTC
This is Excel compatible, for whatever that's worth.