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: | "Design this container" and "Design parent" doesn't show same containers | ||
---|---|---|---|
Product: | guibuilder | Reporter: | asenk |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | 5 steps |
Description
asenk
2011-08-01 11:06:07 UTC
Created attachment 109726 [details]
5 steps
If I understand correctly then you are complaining that pictures 2 and 4 are different. In other words, that the size of the designed container (=JScrollPane) is not the same there. There is no correct size of the designed subcontainer. It's actual size during runtime will be determined by the size of its parents (and by their layout managers). When we switch the designed container then there are two reasonable possibilities for the size of the designed container. 1. Keep the mental map of the user, i.e., if the new designed container was present in the old one then try to keep its size. 2. Show the container in its preferred size. We apply the first rule where possible and use the second rule otherwise. Hence, the behaviour described in this issue is as designed. When you go from picture 1 to picture 2 then we apply rule 1 because the JScrollPane is on picture 1 (i.e. we use the size from the picture 1). On the other hand, when you go from picture 3 to picture 4 then we apply rule 2 because JScrollPane is not on picture 3. |