Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
27ac5111 by wurstsalat at 2024-07-08T20:41:46+02:00
cfix: MessageRowActions: Make sure to keep offset within row height

- - - - -


1 changed file:

- gajim/gtk/conversation/rows/widgets.py


Changes:

=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -118,10 +118,11 @@ def update(self, y_coord: int, message_row: MessageRow) 
-> None:
         if y_coord < self_height:
             y_coord = self_height
 
-        # Subtract some space to let MessageRowActions 'flow' above the row
+        # Subtract some space to let MessageRowActions 'flow' above the row,
+        # but make sure to make offset smaller than row height.
         offset = 12
         if self._message_row.is_merged:
-            offset = 28
+            offset = min(28, self_height - 6)
 
         adjusted_y_coord = y_coord - offset
         if adjusted_y_coord < 0:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/27ac5111126addee15b1cc6817c4a4e8ee08e6bd

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/27ac5111126addee15b1cc6817c4a4e8ee08e6bd
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to