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.

Bug 130316 - Incorrect initial size of a dialog (NbDialog)
Summary: Incorrect initial size of a dialog (NbDialog)
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 18:15 UTC by Marian Petras
Modified: 2009-11-02 10:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
logs and stack-traces demonstrating the bug and its cause (6.69 KB, text/plain)
2008-03-17 18:17 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2008-03-17 18:15:42 UTC
NB 080313, JDK 1.6.0_10-b13, Ubuntu 7.10, quad-core Intel CPU
Gnome display settings: 100 DPI, sub-pixel smoothing, fixed width font size set to 13, other font sizes set to 12
--
The first time the "Internationalize' dialog is displayed, it has incorrect size (wider, lower) which causes that a
vertical scroll-bar is displayed in the 'Comment:' field. The subsequent calls may reuse the existing dialog so
incorrect size is preserved. The next time the dialog is created, its initial size is correct. The immediate cause of
this incorrect behavior is that the dialog's insets are not fully set up at the time the dialog's preferred size is
being computed.

The Container.insets() method is called several times during initialization of the dialog. During first initialization
of the dialog, the first two calls of the method return incorrect values of insets (25,5,5,5) which makes all the
subsequent computation of preferred size incorrect, too. All the following invocations of the insets() method return
correct value (27,4,4,4) and the dialog's preferred size is thus computed correctly, too.

See the attachment - there are call-stacks of all invocations of the insets() method during the first and also (for
comparison) during the second setup of the dialog.

When reproducing this bug, remember to use NetBeans with bugfix for bug #130047 integrated ("Dialog for
Interantionalization contains useless scrollbars on Mac").
Comment 1 Marian Petras 2008-03-17 18:17:51 UTC
Created attachment 58510 [details]
logs and stack-traces demonstrating the bug and its cause
Comment 2 Jiri Rechtacek 2008-11-21 16:18:34 UTC
Not in current plan to fix it
Comment 3 Quality Engineering 2009-11-02 10:57:34 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX