From e56f1a976ea2aaad73904442acae3edfcc7020ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 3 Mar 2019 02:22:54 +0100 Subject: [PATCH] native-window-placement: Reindent to conform with new style Instead of aligning arguments like we used to do, use a consistent four-space indent as mandated by gjs' current style guide. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66 --- extensions/native-window-placement/extension.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js index 8a8b0937..608c1f6a 100644 --- a/extensions/native-window-placement/extension.js +++ b/extensions/native-window-placement/extension.js @@ -203,9 +203,10 @@ class NaturalLayoutStrategy extends Workspace.LayoutStrategy { // Work out scaling by getting the most top-left and most bottom-right window coords. let scale; - scale = Math.min(areaRect.width / bounds.width, - areaRect.height / bounds.height, - 1.0); + scale = Math.min( + areaRect.width / bounds.width, + areaRect.height / bounds.height, + 1.0); // Make bounding rect fill the screen size for later steps bounds.x = bounds.x - (areaRect.width - bounds.width * scale) / 2;