app/assets/lookbook/js/components/splitter.js in lookbook-0.6.1 vs app/assets/lookbook/js/components/splitter.js in lookbook-0.7.0
- old
+ new
@@ -9,10 +9,10 @@
Split({
[type]: [{ track: 1, element }],
minSize: props.minSize || 0,
writeStyle() {},
onDrag: (dir, track, style) => {
- this.splits = style.split(" ").map((num) => parseInt(num));
+ this.splits = style.split(" ").map((num) => parseFloat(num, 10));
},
onDragStart: () => {
this.$store.layout.reflowing = true;
},
onDragEnd: () => {