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.
Summary: | Make preview of position of new component more exact in BoxLayout | ||
---|---|---|---|
Product: | guibuilder | Reporter: | pribyl <pribyl> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
Indicated position
Real position after placing |
Description
pribyl
2008-07-04 11:28:17 UTC
Created attachment 63935 [details]
Indicated position
Created attachment 63936 [details]
Real position after placing
This is as designed in the following sense: we do not attempt to do an exact preview where the component will be placed. The only purpose of the indicated position is to let the user know between which components the new component will be dropped. Try to play with more components with different sizes - the indicated position is never exact, the size of the rectangle, for example, is different than the actual size of the component. As for your test case, the indicated position is painted as if the component had alignmentX property equal to 0.5 e.g. it is painted in the center. We don't consider the alignment property (or other - min, pref, max size properties of the component) because we don't want to indicate exact final location of the component, but its order among other components only. Leaving this issue as an enhancement request. I see, thanks for explaining. And for leaving this issue "alive" as enhancement request (I take it as a sign that it was not a complete nonsense :) ) |