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: | VWP designer places the dropdown at the upper left corner of the page, although it shows up correctly when the application is run | ||
---|---|---|---|
Product: | obsolete | Reporter: | runa <runa> |
Component: | visualweb | Assignee: | Peter Zavadsky <pzavadsky> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
1st attempt to hack the issue, which, however, doesn't work.
2nd attempt, also not working because during the time the vertical lenghts are not resolved yet dropdown reposition picture |
Description
runa
2007-04-04 07:52:12 UTC
Peter, can you evaluate if this is a designer issue ? Thanks Yes, it is there, investigating. Simplified steps (the presence of the tabset is needless). 1) Drop layout panel into the designer 2) Drop dropdown into the layout panel 3) Change the style property of the drop down to the: position: fixed; width: 75px 4) The dropdown will be rendered at wrong position in the designer (outside the panel). The problem seems to be computing the position for the fixed box when its top and left are auto. The reason of this issue (not the hang, but the huge number), is bad structure of the individual views after the drop. It seems that the views are still not properly separated from the model. Investigating. The last comment didn't belong to this issue. So the issue remains, the problem is computing the position of fixed box while its properties are auto. Further simplified steps: 1) Drop layout panel into the designer, 2) Drop any component into the layout panel (e.g. button or listbox), 3) Set the position property style of the component to fixed, while don't set top,left,right,bottom properties. 4) The component gets positioned to the left upper corner of the viewport instead of the layout panel. Created attachment 44222 [details]
1st attempt to hack the issue, which, however, doesn't work.
Created attachment 44285 [details]
2nd attempt, also not working because during the time the vertical lenghts are not resolved yet
Fixed. Checking in visualweb/designer/src/org/netbeans/modules/visualweb/css2/DocumentBox.java; /cvs/visualweb/designer/src/org/netbeans/modules/visualweb/css2/DocumentBox.java,v <-- DocumentBox.java new revision: 1.5; previous revision: 1.4 done Still reproducible using nb6 200707130000 Steps: 1. add layout panel 2. add dropdown inside of layout panel 3. edit style using ... 4. set Position: mode = fixed 4. set Position: width = 75px dropdown repositions in upper left corner. note: you can also just paste: position: fixed; width: 75px into the css style box and press ok. It is working for me, could you please try out again, or to find out whether it is windows only? Thanks. Closing as works for me. Please try out and if doesn't work reopen and specify the platform etc. Thanks. Still reproducible (image attached). Tested with: Product Version: NetBeans 6 IDE Dev (Build beta1: 200709120000 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 Glassfish: 58g removed INCOMPLETE. Created attachment 48768 [details]
dropdown reposition picture
Yes, now I get the same result too. Looking into it. There seems to be some kind of refresh issue. Immediately after the change the drop down is positioned in the top [0,0], but after consequent refresh it is correctly inside the layout panel. Fixed. Checking in visualweb/designer/src/org/netbeans/modules/visualweb/css2/DocumentBox.java; /cvs/visualweb/designer/src/org/netbeans/modules/visualweb/css2/DocumentBox.java,v <-- DocumentBox.java new revision: 1.15; previous revision: 1.14 done Will wait until this new issue is fixed before verifying this: http://www.netbeans.org/issues/show_bug.cgi?id=118287 Verified fixed using: Product Version: NetBeans IDE Dev (Build 200710230000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Glassfish: 58g Woodstock 4.1: 200710250638 |