Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix an issue with certain tooltips being placed on the wrong screen i…
…n certain multi screen configurations

This did affect users with a vertical multi monitor setup using the classical (single Space) multi monitor mode.
  • Loading branch information
dmoagx committed Mar 25, 2015
1 parent 9fd78af commit 34383ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/SPTooltip.m
Expand Up @@ -320,8 +320,11 @@ - (void)sizeToContent
NSScreen* candidate;
for(candidate in [NSScreen screens])
{
if(NSMinX([candidate frame]) < pos.x && NSMinX([candidate frame]) > NSMinX(screenFrame))
screenFrame = [candidate frame];
NSRect cf = [candidate frame];
if(NSPointInRect(pos,cf)) {
screenFrame = cf;
break;
}
}

// is contentView a webView calculate actual rendered size via JavaScript
Expand Down

0 comments on commit 34383ef

Please sign in to comment.