From 46a3462026e158f5821207bd32bc1f3836371b87 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 14 Jul 2021 14:11:25 -0700 Subject: [PATCH] clang-format core/utils/style.js --- core/utils/style.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/core/utils/style.js b/core/utils/style.js index 90cfa1d9a..028b746b8 100644 --- a/core/utils/style.js +++ b/core/utils/style.js @@ -81,8 +81,7 @@ const getSizeWithDisplay = function(element) { * @private */ const getStyle = function(element, style) { - return getComputedStyle(element, style) || - getCascadedStyle(element, style) || + return getComputedStyle(element, style) || getCascadedStyle(element, style) || (element.style && element.style[style]); }; @@ -221,11 +220,8 @@ const getBorderBox = function(element) { * @param {boolean=} opt_center Whether to center the element in the container. * Defaults to false. */ -const scrollIntoContainerView = function( - element, container, opt_center) { - const offset = - getContainerOffsetToScrollInto(element, - container, opt_center); +const scrollIntoContainerView = function(element, container, opt_center) { + const offset = getContainerOffsetToScrollInto(element, container, opt_center); container.scrollLeft = offset.x; container.scrollTop = offset.y; };