Merge branch 'wip/chergert/fix-4134' into 'master'

textview: fix yoffset position when top_margin is set

Closes #4134

See merge request GNOME/gtk!3801
This commit is contained in:
Matthias Clasen 2021-07-30 13:41:30 +00:00
commit 06348a8517

View File

@ -4892,7 +4892,7 @@ changed_handler (GtkTextLayout *layout,
gtk_text_layout_get_line_yrange (layout, &first, &new_first_para_top, NULL);
old_first_para_top = priv->yoffset - priv->first_para_pixels + priv->top_margin;
old_first_para_top = priv->yoffset - priv->first_para_pixels;
if (new_first_para_top != old_first_para_top)
{