mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
whitespace cleanup
This commit is contained in:
parent
f1031df8e9
commit
769eb9458f
1 changed files with 3 additions and 4 deletions
|
@ -14,7 +14,7 @@ import 'rc-slider/assets/index.css';
|
|||
|
||||
class WidgetSlider extends Component {
|
||||
|
||||
static get OrientationTypes() {
|
||||
static get OrientationTypes() {
|
||||
return ({
|
||||
HORIZONTAL: {value: 0, name: 'Horizontal'},
|
||||
VERTICAL: {value: 1, name: 'Vertical'}
|
||||
|
@ -38,7 +38,7 @@ class WidgetSlider extends Component {
|
|||
if (this.props.widget.orientation !== nextProps.widget.orientation) {
|
||||
let baseWidget = nextProps.widget;
|
||||
// Exchange dimensions and constraints
|
||||
let newWidget = Object.assign({}, baseWidget, {
|
||||
let newWidget = Object.assign({}, baseWidget, {
|
||||
width: baseWidget.height,
|
||||
height: baseWidget.width,
|
||||
minWidth: baseWidget.minHeight,
|
||||
|
@ -61,7 +61,6 @@ class WidgetSlider extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
|
||||
let isVertical = this.props.widget.orientation === WidgetSlider.OrientationTypes.VERTICAL.value;
|
||||
|
||||
let fields = {
|
||||
|
@ -95,4 +94,4 @@ class WidgetSlider extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
export default WidgetSlider;
|
||||
export default WidgetSlider;
|
||||
|
|
Loading…
Add table
Reference in a new issue