This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using pseudo localized product, with each message or label having additional multibyte text, and using -fontsize 16 option, running in Chinese locale, create xml file; in editor choose xslt transformation and look at attachment of that window - there are several places where there are resizing issues - words process overlap does not show completely, xml source and xslt script areas overlap and the word "overwrite" dors not show completely.Chinese localization will use a larger font than default one now used so these issues will be more visible to them, but this can also be viewed as a general or a11y issue since may be visible to users in english locale who use larger fonts. Assumption is that user should be able to see all items in a given window when it appears and should not need to resize it to see those things. That is, the UI area or window should dynamically resize itself to show the needed contents. (this does not apply to contents of textfields, areas controlled by scrollbars or vertical resizing controls like in options window) To emulate in non multibyte locale without multibyte in messages or longer messages, you may need to run with fontsize 18 or 20 to see what we are seeing with fontsize 16. Even with larger sizes, it may not be seen exactly the same due to the effect of multibyte and longer strings. This issue is marked with the FONTSIZE keywork; bugs so marked will not appear on quality dashboards and will not need to be waived or fixed for English FCS products of this release. For Netbeans issues, this will be marked as blocking 33246
Created attachment 10428 [details] xslt window
TransformPanel invokes: setPreferredSize(new java.awt.Dimension(600, 155)); what is plain wrong. pack() should be called instead and all componets should use abstract sizing hints (like number of columns for text fields).
in prj40_prototype branch.
Created attachment 10482 [details] The patch
I would like to propose the following fix into the [release35]: Index: src/org/netbeans/modules/xsl/ui/TransformPanel.java =================================================================== RCS file: /cvs/xml/xsl/src/org/netbeans/modules/xsl/ui/TransformPanel.java,v retrieving revision 1.10 diff -r1.10 TransformPanel.java 89a90,92 > > // fix of #33884 > setPreferredSize(null); Mila could you please to review it? Thanks.
I approve the fix.
fixed in [release35] /cvs/xml/xsl/src/org/netbeans/modules/xsl/ui/TransformPanel.java,v <-- TransformPanel.java new revision: 1.10.2.1; previous revision: 1.10
Verified in nevada build030721.