Merge branch 'wip/chergert/revert-top-margin' into 'master'

Revert "textview: fix yoffset position when top_margin is set"

See merge request GNOME/gtk!3828
This commit is contained in:
Matthias Clasen 2021-08-06 13:13:21 +00:00
commit f328ab9d83

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;
old_first_para_top = priv->yoffset - priv->first_para_pixels + priv->top_margin;
if (new_first_para_top != old_first_para_top)
{