Revert "textview: fix yoffset position when top_margin is set"
This reverts commit 908b1e5e12.
This commit broke top-margin altogether.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user