GNOME Bugzilla – Bug 662368
vertical alignment problem
Last modified: 2011-10-21 18:21:02 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).
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"?
This is Excel compatible, for whatever that's worth.