Skip to content
Snippets Groups Projects
Commit 44413921b387 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Ensure timeline height is a multiple of 24

We remove also the margin of 2 pixels at the bottom.

bug33
parent 1518a0a87e34
No related branches found
No related tags found
No related merge requests found
......@@ -619,5 +619,6 @@
self._timeline.set_property(
'visibility', GooCanvas.CanvasItemVisibility.VISIBLE)
x, y, w, h = self.get_bounds()
max_y += (h - max_y) % 24
self._timeline.x = x
self._timeline.y = max_y
......@@ -622,6 +623,6 @@
self._timeline.x = x
self._timeline.y = max_y
self._timeline.height = h - max_y - 2
self._timeline.height = h - max_y
self._timeline.line_color = self.props.body_color
self._timeline.bg_color = self.props.border_color
self._timeline.text_color = self.props.text_color
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment