The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ranran(retired) on November 07, 2020, 09:21:55 AM

Title: Position of the combo box is displayed below the proper position in some case
Post by: Ranran(retired) on November 07, 2020, 09:21:55 AM
Thank you for your daily maintenance.

After suffering from this issue for a while in the extended code, I realized that it is a simutrans issue. (´・ω・`)

When the font size is increased, the position of the combo box may be displayed below the proper position.
The correct position, that is, at the same height as the label, or in the cell of the table.


For example, in Yu Gothic, 16px example:
The combobox is clearly visible at the bottom of the frame.

Extended(with GUI debug mode)
(https://i.imgur.com/M7VhqeJ.png)

Standard(r9274)
(https://i.imgur.com/9QJlBnM.png)



Extended(with GUI debug mode)
(https://i.imgur.com/cTgqd7r.png)

Standard(r9274)
(https://i.imgur.com/GEiqYxf.png)



Extended(with GUI debug mode)
(https://i.imgur.com/aLuOYBS.png)

Standard(r9274)
(https://i.imgur.com/m4pabMI.png)

The last is the most obvious example. The Japanese translation is bit different, but the code in the load font dialog is the same between standard and extended.
The GUI debug display shows that the combobox is out of the frame.
Title: Re: Position of the combo box is displayed below the proper position in some case
Post by: Dwachs on November 07, 2020, 04:55:25 PM
Please try with r9376
Title: Re: Position of the combo box is displayed below the proper position in some case
Post by: Ranran(retired) on November 08, 2020, 05:32:31 AM
It seems to have been fixed. Thank you very much.  :)