-
Bug
-
Resolution: Fixed
-
P1
-
1.1.3
-
1.1.5
-
sparc
-
solaris_2.5.1
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2015943 | 1.2.0 | Paul Young | P1 | Resolved | Fixed | 1.2beta2 |
The calculation of BorderLayout element heights seems to have a roundoff error.
To observe bug:
1. Run the following on solaris:
/usr/local/java/hjv1.1/solaris/bin/views
2. Slide out bottom left sliding panel (yellow band), by slowly placing cursor on top of the yellow handle area.
3. Observe the small gray band on the bottom left corner of the sliding panel.
4. Slide in the sliding panel by moving cursor out of its window.
5. Resize the main window by pulling the top resize border down.
6. Repeat step 2-4. If the gray bar is still there, repeat step 5 then 2-4.
It seems the gray is coming from the West component of the BorderLayout of the main window, which is probably caused by the height that is reported from a getSize() of the main window as being x for odd height values and x+1 for even height values. I think it might be some type of round-off error happening.
See me for more info.
To observe bug:
1. Run the following on solaris:
/usr/local/java/hjv1.1/solaris/bin/views
2. Slide out bottom left sliding panel (yellow band), by slowly placing cursor on top of the yellow handle area.
3. Observe the small gray band on the bottom left corner of the sliding panel.
4. Slide in the sliding panel by moving cursor out of its window.
5. Resize the main window by pulling the top resize border down.
6. Repeat step 2-4. If the gray bar is still there, repeat step 5 then 2-4.
It seems the gray is coming from the West component of the BorderLayout of the main window, which is probably caused by the height that is reported from a getSize() of the main window as being x for odd height values and x+1 for even height values. I think it might be some type of round-off error happening.
See me for more info.
- backported by
-
JDK-2015943 Calculation of BorderLayout heights not correct
- Resolved
- relates to
-
JDK-4065568 Components derived from Panel have extra pixel in their border
- Closed