Details
-
Bug
-
Resolution: Fixed
-
P4
-
7
-
b61
-
generic
-
os_x
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2222361 | 7u40 | Sergey Bylokhov | P4 | Closed | Won't Fix | |
JDK-8180985 | openjdk7u | Sergey Bylokhov | P4 | Resolved | Fixed | master |
Description
http://java.net/jira/browse/MACOSX_PORT-769 submitted 2011/12/08 by Yuri Nesterenko
Target functionality of this test (included) seems working (well, not exactly, see the next bug) but there's a layout issue. We have
<ul class="alternate" type="square">
.a Frame without defined size;
.added there a Panel with BorderLayout() also without set size;
.added there a ScrollPane with setSize(200,200);
.added to that, a Component with setPreferredSize(300,300).Now, frame.pack() on this port does collapse the Frame to the absolute minimum. Should it be so? On other platforms it has size slightly bigger than 200,200.
Setting preferred size (not minimum) of ScrollPane to 200,200 fixes that.
Target functionality of this test (included) seems working (well, not exactly, see the next bug) but there's a layout issue. We have
<ul class="alternate" type="square">
.a Frame without defined size;
.added there a Panel with BorderLayout() also without set size;
.added there a ScrollPane with setSize(200,200);
.added to that, a Component with setPreferredSize(300,300).Now, frame.pack() on this port does collapse the Frame to the absolute minimum. Should it be so? On other platforms it has size slightly bigger than 200,200.
Setting preferred size (not minimum) of ScrollPane to 200,200 fixes that.
Attachments
Issue Links
- backported by
-
JDK-8180985 [macosx] pack() does ignore size of a component; doesn't on the other platforms.
- Resolved
-
JDK-2222361 [macosx] pack() does ignore size of a component; doesn't on the other platforms.
- Closed
- duplicates
-
JDK-7124489 [macosx] pack() does ignore size of a component; doesn't on the other platforms.
- Closed
- relates to
-
JDK-7161801 [macosx] LWComponentPeer.getMinumumSize() should be unified with another platforms
- Resolved