mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-4107 A11y: macOS - wrong frame position if window is not on primary screen
This commit is contained in:
committed by
alexey.ushakov@jetbrains.com
parent
9e0845f879
commit
7970c0fd49
@@ -1008,7 +1008,7 @@ static NSObject *sAttributeNamesLOCK = nil;
|
||||
point.y += size.height;
|
||||
|
||||
// Now make it into Cocoa screen coords.
|
||||
point.y = [[[[self view] window] screen] frame].size.height - point.y;
|
||||
point.y = [[NSScreen screens][0] frame].size.height - point.y;
|
||||
|
||||
return [NSValue valueWithPoint:point];
|
||||
}
|
||||
@@ -1386,7 +1386,7 @@ static NSObject *sAttributeNamesLOCK = nil;
|
||||
"(Ljava/awt/Container;FF)Ljavax/accessibility/Accessible;", nil);
|
||||
|
||||
// Make it into java screen coords
|
||||
point.y = [[[[self view] window] screen] frame].size.height - point.y;
|
||||
point.y = [[NSScreen screens][0] frame].size.height - point.y;
|
||||
|
||||
jobject jparent = fComponent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user