Commit a5bd1474 authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Matthias Clasen

entry: consider ascent and descent when requesting height

Commit d05191a0 change the height
requisition to be completely dependent on the PangoLayout, but that
breaks when the font has special characters with different metrics.
Use the maximum between the two instead.
parent 1409d7c4
......@@ -3452,6 +3452,7 @@ gtk_entry_get_preferred_height_and_baseline_for_width (GtkWidget *widget,
_gtk_entry_get_borders (entry, &borders);
pango_layout_get_pixel_size (layout, NULL, &height);
height = MAX (height, PANGO_PIXELS (priv->ascent + priv->descent));
height += + borders.bottom;
baseline = pango_layout_get_baseline (layout) / PANGO_SCALE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment