From: Christian Heller Date: Sat, 26 Oct 2024 13:41:15 +0000 (+0200) Subject: Browser: left(=bottom)-align by_1st secondary labels. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/te"st.html?a=commitdiff_plain;h=bc8c69a2959068f2ffe771fa3bdac050f3ee289b;p=stable_plom Browser: left(=bottom)-align by_1st secondary labels. --- 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)