home
·
contact
·
privacy
projects
/
stable_plom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b56c3ed
)
Browser: left(=bottom)-align by_1st secondary labels.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 26 Oct 2024 13:41:15 +0000
(15:41 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 26 Oct 2024 13:41:15 +0000
(15:41 +0200)
browser.py
patch
|
blob
|
history
diff --git
a/browser.py
b/browser.py
index 31f146e74649d7dfbd5df26f6a27aa5e746bfa35..361bdae79716dce910f653ab0a84effceeb1be1e 100755
(executable)
--- 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)