<AWT Dev> Review Request: JDK-8144709 [hidpi] [TestBug] java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java, java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java are failing

Alexandr Scherbatiy alexandr.scherbatiy at oracle.com
Wed Jul 20 12:05:32 UTC 2016


The fix looks good to me.

Thanks,
Alexandr.

On 7/20/2016 12:03 PM, Prem Balakrishnan wrote:
>
> Hi,
>
> Please review fix for JDK9,
>
> *Bug:* https://bugs.openjdk.java.net/browse/JDK-8144709
>
> *Webrev:* http://cr.openjdk.java.net/~pkbalakr/8144709/webrev.00/ 
> <http://cr.openjdk.java.net/%7Epkbalakr/8144709/webrev.00/>
>
> *Issue:*
>
> java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java,
>
> java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java 
> are failing
>
> *Cause:*
>
> *This issue is reproducible only on windows 8 OS.*
>
> Component(frame) width is set to 200,
>
> where as the minimum width obtained using ::GetSystemMetrics(SM_CXMIN) 
> for Windows 8 is 210 (with 150% scale),
>
> hence user set width is replaced by the minimum width.
>
> Therefore the Button size obtained is 97X52 instead of 92X52. (i.e., 
> each column is 5pixel more)
>
> *Fix: *frame width increased from 200 to 300
>
> Thanks,
>
> Prem
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160720/7b88dfbb/attachment.html>


More information about the awt-dev mailing list