| Summary: | [3.6.2] Inconsistent handling of Tree client area when scrolling under MacOSX Cocoa | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Scott Kovatch <skovatch> |
| Component: | SWT | Assignee: | Scott Kovatch <skovatch> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen, peter, skovatch |
| Version: | 3.6.1 | Flags: | skovatch:
review?
(Silenio_Quarti) |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
| Bug Depends on: | 333375 | ||
| Bug Blocks: | 332956 | ||
|
Description
Scott Kovatch
current version of Scrollable#getClienetArea():
public Rectangle getClientArea () {
checkWidget();
if (scrollView != null) {
NSSize size = scrollView.contentSize();
NSClipView contentView = scrollView.contentView();
NSRect bounds = contentView.bounds();
return new Rectangle((int)bounds.x, (int)bounds.y, (int)size.width, (int)size.height);
} else {
NSRect rect = view.bounds();
return new Rectangle(0, 0, (int)rect.width, (int)rect.height);
}
}
-----------------
New version of Scrollable#getClientArea():
public Rectangle getClientArea () {
checkWidget();
if (scrollView != null) {
NSSize size = scrollView.contentSize();
return new Rectangle(0, 0, (int)size.width, (int)size.height);
} else {
NSRect rect = view.bounds();
return new Rectangle(0, 0, (int)rect.width, (int)rect.height);
}
}
I assume this one should be reverted as well, right? Correct, now that we understand it better. (In reply to comment #3) > Correct, now that we understand it better. Yes, the fog has somewhat "burned off". And as the GEF problem is finally resolved, the effort was not completely gratuitous in the end. So nevertheless thanks for having supported this. |