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 99918 - VWP designer places the dropdown at the upper left corner of the page, although it shows up correctly when the application is run
Summary: VWP designer places the dropdown at the upper left corner of the page, althou...
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 07:52 UTC by runa
Modified: 2007-10-25 19:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
1st attempt to hack the issue, which, however, doesn't work. (1.99 KB, text/plain)
2007-06-21 22:27 UTC, Peter Zavadsky
Details
2nd attempt, also not working because during the time the vertical lenghts are not resolved yet (3.01 KB, patch)
2007-06-22 19:08 UTC, Peter Zavadsky
Details | Diff
dropdown reposition picture (268.80 KB, image/jpeg)
2007-09-13 19:34 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description runa 2007-04-04 07:52:12 UTC
Entering this for external customer from the Sun Developer Expert Assistance
program:

1.Drag & drop a layout panel on to the design page.
2.Drag & drop a dropdown list and a tabset into the panel layout.
3.In the property sheet of the dropdown list component click on the button next
   to style property.
4. A style window opens, click on the Position in the left side of the column.
5.In the Position section set the mode to fixed and in the size section, set the
width to 75 px.
6.Click on ok.

We could see the visual web pack designer places the dropdown at the upper left
corner of the page, although it shows up correctly when the application is run.

Is there a workaround for this issue?
Comment 1 Jayashri Visvanathan 2007-06-15 06:24:27 UTC
Peter, can you evaluate if this is a designer issue ?
Thanks
Comment 2 Peter Zavadsky 2007-06-20 21:10:32 UTC
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).
Comment 3 Peter Zavadsky 2007-06-20 21:45:10 UTC
The problem seems to be computing the position for the fixed box when its top and left are auto.
Comment 4 Peter Zavadsky 2007-06-20 23:56:38 UTC
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.
Comment 5 Peter Zavadsky 2007-06-21 20:52:28 UTC
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.
Comment 6 Peter Zavadsky 2007-06-21 22:27:18 UTC
Created attachment 44222 [details]
1st attempt to hack the issue, which, however, doesn't work.
Comment 7 Peter Zavadsky 2007-06-22 19:08:42 UTC
Created attachment 44285 [details]
2nd attempt, also not working because during the time the vertical lenghts are not resolved yet
Comment 8 Peter Zavadsky 2007-06-22 23:12:37 UTC
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
Comment 9 Lark Fitzgerald 2007-07-16 19:30:02 UTC
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.
 
Comment 10 Peter Zavadsky 2007-08-23 19:37:48 UTC
It is working for me, could you please try out again, or to find out whether it is windows only? Thanks.
Comment 11 Peter Zavadsky 2007-08-31 00:15:43 UTC
Closing as works for me. Please try out and if doesn't work reopen and specify the platform etc. Thanks.
Comment 12 Lark Fitzgerald 2007-09-13 19:32:51 UTC
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
Comment 13 Lark Fitzgerald 2007-09-13 19:33:46 UTC
removed INCOMPLETE.
Comment 14 Lark Fitzgerald 2007-09-13 19:34:43 UTC
Created attachment 48768 [details]
dropdown reposition picture
Comment 15 Peter Zavadsky 2007-09-28 19:58:15 UTC
Yes, now I get the same result too. Looking into it.
Comment 16 Peter Zavadsky 2007-09-28 20:11:07 UTC
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.
Comment 17 Peter Zavadsky 2007-09-28 23:31:19 UTC
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
Comment 18 Lark Fitzgerald 2007-10-09 20:20:23 UTC
Will wait until this new issue is fixed before verifying this:
http://www.netbeans.org/issues/show_bug.cgi?id=118287
Comment 19 Lark Fitzgerald 2007-10-25 19:23:45 UTC
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