From 50519413d0adac6e90c0c78cafa5eec92ee36e19 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Thu, 28 Mar 2019 14:13:08 -0700 Subject: [PATCH] Line length --- core/widgetdiv.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/widgetdiv.js b/core/widgetdiv.js index a2cbd3880..258080978 100644 --- a/core/widgetdiv.js +++ b/core/widgetdiv.js @@ -219,8 +219,7 @@ Blockly.WidgetDiv.calculateX_ = function(viewportBBox, anchorBBox, widgetSize, } else { // Try to align the left side of the field and the left side of widget. // Don't go offscreen right. - var x = Math.min(anchorBBox.left, - viewportBBox.right - widgetSize.width); + var x = Math.min(anchorBBox.left, viewportBBox.right - widgetSize.width); // But left is more important, because that's where the text is. return Math.max(x, viewportBBox.left); } @@ -241,8 +240,7 @@ Blockly.WidgetDiv.calculateX_ = function(viewportBBox, anchorBBox, widgetSize, */ Blockly.WidgetDiv.calculateY_ = function(viewportBBox, anchorBBox, widgetSize) { // Flip the widget vertically if off the bottom. - if (anchorBBox.bottom + widgetSize.height >= - viewportBBox.bottom) { + if (anchorBBox.bottom + widgetSize.height >= viewportBBox.bottom) { // The bottom of the widget is at the top of the field. return anchorBBox.top - widgetSize.height; // The widget could go off the top of the window, but it would also go off