diff --git a/src/frontendHourlyDetails.py b/src/frontendHourlyDetails.py index e9c5974..59f4e8e 100644 --- a/src/frontendHourlyDetails.py +++ b/src/frontendHourlyDetails.py @@ -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)