From bc8c69a2959068f2ffe771fa3bdac050f3ee289b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 26 Oct 2024 15:41:15 +0200 Subject: [PATCH] Browser: left(=bottom)-align by_1st secondary labels. --- browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser.py b/browser.py index 31f146e..361bdae 100755 --- a/browser.py +++ b/browser.py @@ -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) -- 2.30.2