Skip to content

Commit

Permalink
adjust position of 'now' label in hourly forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
amit9838 committed May 13, 2024
1 parent bbe5acb commit f5cf6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontendHourlyDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,6 @@ def create_stack_page(self, page_name):
# Add scrollbar offset
container_size = graphic_container.get_preferred_size()[1]
container_width = container_size.width
scrollbar_offset = (container_width / 24) * (nearest_current_time_idx - 2)
scrollbar_offset = (container_width / 24) * (nearest_current_time_idx - 1)
h_adjustment = Gtk.Adjustment(value=scrollbar_offset, lower=0, upper=container_width)
scrolled_window.set_hadjustment(h_adjustment)

0 comments on commit f5cf6de

Please sign in to comment.