mirror of
https://github.com/electron/electron.git
synced 2026-01-29 09:18:18 -05:00
🔧 Spaces for the Spacelord
This commit is contained in:
@@ -65,8 +65,8 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
|
||||
newOrigin.y = currentLocation.y - self.initialLocation.y;
|
||||
|
||||
// Don't let window get dragged up under the menu bar
|
||||
if( (newOrigin.y+windowFrame.size.height) > (screenFrame.origin.y+screenFrame.size.height) ){
|
||||
newOrigin.y=screenFrame.origin.y + (screenFrame.size.height-windowFrame.size.height);
|
||||
if( (newOrigin.y + windowFrame.size.height) > (screenFrame.origin.y + screenFrame.size.height) ){
|
||||
newOrigin.y = screenFrame.origin.y + (screenFrame.size.height - windowFrame.size.height);
|
||||
}
|
||||
|
||||
// Move the window to the new location
|
||||
|
||||
Reference in New Issue
Block a user