[libhandy] carousel-box: Fix non-expanded children position on RTL



commit fdbf15ca58729f39a7d8784abca5b08042855a7d
Author: Lains <lains airmail cc>
Date:   Mon Mar 1 09:44:21 2021 -0300

    carousel-box: Fix non-expanded children position on RTL
    
    Fixes https://gitlab.gnome.org/GNOME/libhandy/-/issues/409

 src/hdy-carousel-box.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/hdy-carousel-box.c b/src/hdy-carousel-box.c
index df279ea4..7d02481d 100644
--- a/src/hdy-carousel-box.c
+++ b/src/hdy-carousel-box.c
@@ -744,7 +744,7 @@ update_windows (HdyCarouselBox *self)
   if (self->orientation == GTK_ORIENTATION_VERTICAL)
     offset = (self->distance * self->position) - (alloc.height - self->child_height) / 2.0;
   else if (is_rtl)
-    offset = -(self->distance * self->position) + (alloc.width - self->child_width) / 2.0;
+    offset = -(self->distance * self->position) - (alloc.width - self->child_width) / 2.0;
   else
     offset = (self->distance * self->position) - (alloc.width - self->child_width) / 2.0;
 


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