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.
9) the close button in window header doesn't correspond to the button from the spec http://ui.netbeans.org/nonav/docs/ui/ws_issues/ws_issues-metal.html
Prioritizing.
fixed in main trunk.
Dafe, another one pixel issue. Please, move the close button in window header one pixel up, so that its top is aligned with the top of drag texture. Thanks.
It already *is* top aligned in current build, look at the assigned picture.
Created attachment 12436 [details] picture of view header taken from current build
So the issue seems to be OS specific. On my linux, a window header has 21 pixels height. In screenshot you attached it has only 20 pixels. This difference is caused probably by font height declared by linux. I suggest to modify the algorithm so that it still centers the close button but moves it one pixel up, so that in default layout the computation would be (15 pixels is the close icon height): 20/2 - 15/2 = 10 - 7 = 3 21/2 - 15/2 = 10 - 7 = 3 Or something like that ;-).
Lowering priority (now it's really minor issue).
Keep in mind that this issue is not fixable in general. Your algorithm works accidentally for heights 20 and 21. But for 21 and 22, my algorithm (22-15)/2 and (21-15)/2 will work instead.
I changed centering algorithm to give needed values for default tab sizes in Metal LF. Hope it's enough. Of course it will mean change of close position for other LFs, but as there is no big drag texture to align with in other LFs, I think it's OK. cvs log: /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/BasicViewTabUI.java,v new revision: 1.6; previous revision: 1.5 /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/MetalViewTabUI.java,v new revision: 1.11; previous revision: 1.10
verified in [nb 3.6 rc1](200403161736)