Skip to content

Commit 16fd107

Browse files
committed
Cleanup
1 parent 3692b94 commit 16fd107

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Scripts/WindowManager.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,16 +353,13 @@ function DragAction(){ // This looks less elegant than checking on mouse move bu
353353
this.resizeFunctions = [
354354
function(dialog, offset, difference){ dialog.x = offset.left + difference.x, dialog.y = offset.top + difference.y }, // Move
355355
function(dialog, offset, difference){ dialog.top = offset.top + difference.y }, // Top
356-
function(dialog, offset, difference){ /*dialog.width = offset.width + difference.x*/ dialog.right = offset.right + difference.x }, // Right
356+
function(dialog, offset, difference){ dialog.width = offset.width + difference.x }, // Right
357357
function(dialog, offset, difference){ dialog.height = offset.height + difference.y }, // Bottom
358358
function(dialog, offset, difference){ dialog.left = offset.left + difference.x; }, // Left
359359
function(dialog, offset, difference){ dialog.top = offset.top + difference.y, dialog.left = offset.left + difference.x; }, // Top Left
360-
function(dialog, offset, difference){
361-
dialog.width = offset.width + difference.x,
362-
dialog.height = offset.height - difference.y
363-
dialog.y = offset.top + difference.y },// Top right
360+
function(dialog, offset, difference){ dialog.width = offset.width + difference.x, dialog.height = offset.height - difference.y, dialog.y = offset.top + difference.y },// Top right
364361
function(dialog, offset, difference){ dialog.height = offset.height + difference.y, dialog.width = offset.width + difference.x }, // Bottom right
365-
function(dialog, offset, difference){ dialog.x = offset.left + difference.x, dialog.width = offset.width - difference.x, dialog.height = offset.height + difference.y },
362+
function(dialog, offset, difference){ dialog.x = offset.left + difference.x, dialog.width = offset.width - difference.x, dialog.height = offset.height + difference.y }, // Bottom cleft?
366363
];
367364
}
368365

0 commit comments

Comments
 (0)