[gtk+] widget: Fix css padding debug drawing



commit 16cf4637e926ee58ef58ffa5c4db7f24503bbd28
Author: Timm Bäder <mail baedert org>
Date:   Sun Jan 7 11:55:40 2018 +0100

    widget: Fix css padding debug drawing

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index af4b3c7..b0b53e1 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -14610,7 +14610,7 @@ gtk_widget_maybe_add_debug_render_nodes (GtkWidget             *widget,
       gtk_snapshot_append_color (snapshot, &padding_color, &bounds, "Padding left");
 
       graphene_rect_init (&bounds,
-                          priv->allocation.width - margin.left - border.right - padding.right,
+                          priv->allocation.width - margin.right - border.right - padding.right,
                           margin.top + border.top + padding.top,
                           padding.right,
                           priv->allocation.height - margin.top - margin.bottom - border.top - border.bottom 
- padding.top - padding.bottom);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]