aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTooltip.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTooltip.m')
-rw-r--r--Source/SPTooltip.m11
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m
index eefa7520..54a997f6 100644
--- a/Source/SPTooltip.m
+++ b/Source/SPTooltip.m
@@ -317,16 +317,7 @@ static CGFloat slow_in_out (CGFloat t)
NSPoint pos = NSMakePoint([self frame].origin.x, [self frame].origin.y + [self frame].size.height);
// Find the screen which we are displaying on
- NSRect screenFrame = [[NSScreen mainScreen] frame];
- NSScreen* candidate;
- for(candidate in [NSScreen screens])
- {
- NSRect cf = [candidate frame];
- if(NSPointInRect(pos,cf)) {
- screenFrame = cf;
- break;
- }
- }
+ NSRect screenFrame = [NSScreen rectOfScreenAtPoint:pos];
// is contentView a webView calculate actual rendered size via JavaScript
if([[[[self contentView] class] description] isEqualToString:@"WebView"]) {