From bdc1d49ceab142d0d164f28f316075c4daf45095 Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Mon, 22 May 2017 13:06:27 +0200 Subject: [PATCH] Fix #1861. Fixed background switcher displacements with custom props --- web/client/components/background/BackgroundSelector.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/client/components/background/BackgroundSelector.jsx b/web/client/components/background/BackgroundSelector.jsx index d26a1ce0c3..5e0e35e9f1 100644 --- a/web/client/components/background/BackgroundSelector.jsx +++ b/web/client/components/background/BackgroundSelector.jsx @@ -113,12 +113,11 @@ const BackgroundSelector = React.createClass({ const buttonSizeWithMargin = side + frame + margin * 2; const listContainerStyle = configuration.vertical ? { - bottom: this.props.bottom + buttonSizeWithMargin, + bottom: buttonSizeWithMargin, left: this.props.left, width: buttonSizeWithMargin, height: listSize } : { - bottom: this.props.bottom, left: this.props.left + sideButton + margin * 2 + frame, width: listSize, height: buttonSize