Hi,

thats unfortunate.
The problem is, the code for sizing the text area to add line-breaks
always had a really weird imaginary number of characters to specify this.
This never worked, as its dependent on several font parameters,
which font Java decided to use and even which characters are used
in the displayed text, causing sometimes half of the width being unused
and sometimes too wide text getting cut off.

I recently tweaked the values and made it adapt to the scaling factor.
I thought its better than it was before, but I only used the warning
panel you see when loading a foreign savegame to check if it looked right.
There are separate numbers for panels with and without an icon. You
can see what was changed in git.555af3b3, if you like to tweak the
values for your usecase. Otherwise, I would need a savegame where the
dialog appears.
In the future, I'd like to see someone refactoring the code in Utility
for text areas to take a pixel size, avoiding such guessing and
tedious repeated tweaking.


Greetings,

wintertime


> Gesendet: Mittwoch, 27. Mai 2015 um 13:41 Uhr
> Von: "Michael T. Pope" <mp...@computer.org>
> An: "FreeCol Developers" <freecol-developers@lists.sourceforge.net>
> Betreff: [Freecol-developers] InformationPanel fail
>
> Something strange is happening to InformationPanels, where the text
> gets cut off on the right edge --- see attached.  git bisect
> identifies git.555af3b as the commit where it started.  Is this just me
> or are you seeing it wintertime?
> 
> Cheers,
> Mike Pope

------------------------------------------------------------------------------
_______________________________________________
Freecol-developers mailing list
Freecol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to