Closed G-e-n-e-v-e-n-s-i-S closed 5 months ago
Increasing it by a static value is easy enough, doing it dynamically based on the widest cell might be a bit tedious since it would require restructuring some of the draw logic. There seems to be a lot of dead code in that file too.
PR to just increase it statically: https://github.com/haganbmj/MagicSetEditor2/pull/72
This call to getTextExtent
is probably what would need to be called as early as possible against the entire dimension list. Find the max of that then apply the width to all of the elements, unfortunately it wants to know the size ahead of time before drawing any rows right now.
The name column of the stats tab is too narrow: It is just barely wide enough for English, but we started doing some localization, and for Latin languages like French, Italian and Spanish, which are less concise than English, this will not be enough. Making it adapt to the length of the longest name is probably overkill, but increasing it's width by a flat 50% or 70% is necessary.