517 |
else if (contentRect.y + viewBounds.y + contentRect.height > |
else if (contentRect.y + viewBounds.y + contentRect.height > |
518 |
(portBounds.y+portBounds.height)) |
(portBounds.y+portBounds.height)) |
519 |
setViewPosition (new Point(pos.x, contentRect.y - |
setViewPosition (new Point(pos.x, contentRect.y - |
520 |
(portBounds.height - contentRect.height))); |
(portBounds.height - contentRect.height) - |
521 |
|
portBounds.y)); |
522 |
|
|
523 |
// X-DIRECTION |
// X-DIRECTION |
524 |
pos = getViewPosition(); |
pos = getViewPosition(); |
527 |
else if (contentRect.x + viewBounds.x + contentRect.width > |
else if (contentRect.x + viewBounds.x + contentRect.width > |
528 |
(portBounds.x + portBounds.height)) |
(portBounds.x + portBounds.height)) |
529 |
setViewPosition (new Point(contentRect.x - |
setViewPosition (new Point(contentRect.x - |
530 |
(portBounds.width - contentRect.width), pos.y)); |
(portBounds.width - contentRect.width) |
531 |
|
- portBounds.x, pos.y)); |
532 |
} |
} |
533 |
} |
} |