<Swing Dev> [13] RFR JDK-8213535:Windows HiDPI html lightweight tooltips are truncated
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Fri Dec 6 22:36:23 UTC 2019
On 11/28/19 2:22 am, Prasanta Sadhukhan wrote:
>> For example take a look to the BasicButtonUI class it uses the similar logic on top of View, but we reset the view if font, or font transform is changed see JDK-8201552 and BasicButtonListener.propertyChange()
>>
> BasicToolTipUI.propertyChange was already changed by 8201552 to update the view if "scale" is changed but the problem still exists so it means View does not know about the correct preferred size of text, so we need the above patch to make it work.
Then probably the code which was added in 8201552 is not triggered for some reason?
How other components which may use HTML inside calculates its preferred size? I do not remember that they additionally scale the values returned by the View.
--
Best regards, Sergey.
More information about the swing-dev
mailing list