home · contact · privacy
Browser: left(=bottom)-align by_1st secondary labels.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 26 Oct 2024 13:41:15 +0000 (15:41 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 26 Oct 2024 13:41:15 +0000 (15:41 +0200)
browser.py

index 31f146e74649d7dfbd5df26f6a27aa5e746bfa35..361bdae79716dce910f653ab0a84effceeb1be1e 100755 (executable)
@@ -485,7 +485,7 @@ class VerticalLabel(Gtk.DrawingArea):
         """Create Pango Layout from ._text, rotate and re-size."""
         layout = self.create_pango_layout(self._text)
         text_width, text_height = layout.get_pixel_size()
-        cairo_ctx.translate(0, text_width + (height - text_width) / 2)
+        cairo_ctx.translate(0, text_width + (height - text_width))
         cairo_ctx.rotate(radians(-90))
         PangoCairo.show_layout(cairo_ctx, layout)
         self.set_size_request(text_height, text_width)