477 |
Component comp = children[index]; |
Component comp = children[index]; |
478 |
Dimension sz = comp.getMaximumSize(); |
Dimension sz = comp.getMaximumSize(); |
479 |
x += sz.width; |
x += sz.width; |
480 |
|
// Check for overflow. |
481 |
|
if (x < 0) |
482 |
|
x = Integer.MAX_VALUE; |
483 |
y = Math.max(y, sz.height); |
y = Math.max(y, sz.height); |
484 |
} |
} |
485 |
} |
} |
492 |
Component comp = children[index]; |
Component comp = children[index]; |
493 |
Dimension sz = comp.getMaximumSize(); |
Dimension sz = comp.getMaximumSize(); |
494 |
y += sz.height; |
y += sz.height; |
495 |
|
// Check for overflow |
496 |
|
if (y < 0) |
497 |
|
y = Integer.MAX_VALUE; |
498 |
x = Math.max(x, sz.width); |
x = Math.max(x, sz.width); |
499 |
} |
} |
500 |
} |
} |