Thraka / SadConsole

A .NET ascii/ansi console engine written in C# for MonoGame and XNA. Create your own text roguelike (or other) games!
MIT License
1.22k stars 120 forks source link

ComboBox dropdown doesn't take FontSize of parent in consideration #318

Closed Ven0maus closed 1 year ago

Ven0maus commented 1 year ago

When the parent screenobject has a different fontsize than the _dropDownContainer, the position is wrong. Fix would be something like this:

_dropDownContainer.FontSize = ((ScreenSurface)_dropDownContainer.Parent).FontSize;
Thraka commented 1 year ago

Fixed in https://github.com/Thraka/SadConsole/commit/449ddc7430dc490c95e976c13321b2e36cc7d031