<Swing Dev> [13] RFR JDK-8213535:Windows HiDPI html lightweight tooltips are truncated
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Thu Apr 2 18:39:23 UTC 2020
On 4/2/20 11:06 am, Prasanta Sadhukhan wrote:
> As per my understanding, the GC is correct in reset/pack steps(we pass insideComponent which is JButton to getPopup() and it's defaultTransform is same as the scale we have for the window, which in this case is 1.25), but since "graphicsConfiguration" property is not fired, so BasicHTML.updateRender is not yet called so View is not yet updated, so the preferredSpan is not correct, which is used in preferredSize calculation so when setSize is called, it is set with wrong preferredSize, so I dont think it's because of wrong GC.
If we GC is correct in reset/pack step, but the View calculate wrong size(and update it only after "graphicsConfiguration" property change) means that we calculate the size of the View using wrong GC, why?
--
Best regards, Sergey.
More information about the swing-dev
mailing list