elementary / switchboard-plug-datetime

Switchboard Date & Time Plug
GNU General Public License v3.0
10 stars 8 forks source link

Incorrect TimeZoneGrid city view scroll position #98

Closed vjr closed 2 years ago

vjr commented 3 years ago

What Happened

The scroll position of the selected city in the time zone grid city view widget is "off screen" of the scrolled window widget. My time zone is Asia/Kolkata (in India) and the city selection scroll position is "above" the scrolled window when the plug is opened.

Screenshots to illustrate:

When opening the plug:

datetime1

After manually scrolling to bring the selected city (Kolkata) into view:

datetime2

Expected Behavior

The scroll position should be within view automatically by default, such as in the second screenshot, pasted below again:

datetime2

Steps to Reproduce

  1. Open the date time plug.
  2. Observe the issue described and shown in the screenshots.

Logs

N/A

Platform Information

elementary OS 6.0 Odin daily installation fully updated.

vjr commented 3 years ago

I tried looking into fixing this issue, but could not figure out a solution after navigating the Gtk APIs like using Gtk.Adjustment etc.

Does anyone have any pointers for a fix?