aaronhktan / jyut-dict

A free, open-source, offline Cantonese Dictionary for Windows, Mac, and Linux. Qt, SQLite. C++ and Python.
https://jyutdictionary.com
MIT License
126 stars 8 forks source link

Dictionaries window deselects dictionary when license or description is too large #85

Closed aaronhktan closed 1 year ago

aaronhktan commented 1 year ago

Describe the bug When the user presses down on the mouse over a dictionary, its license and description are displayed on the right. However, when the license is too long or description for a dictionary is too large, the settings window resizes. This causes the dictionary list to resize, which means that the item under the mouse changes. As a result, when the user releases the mouse press, another dictionary is selected.

To Reproduce Steps to reproduce the behavior:

  1. Go to the dictionaries tab in the settings window.
  2. Open a dictionary with a long license (e.g. the HSK 3.0 MIT license in the source/hsk3 branch).
  3. Observe that when trying to click on the HSK3 item, another item is selected.

Expected behavior The correct item should be selected.

Desktop (please complete the following information):