@cu-mkp/editioncrafter 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,6 +40,7 @@ var SplitPaneView = /*#__PURE__*/function (_Component) {
|
|
|
40
40
|
}
|
|
41
41
|
// Update as long as we're within limits
|
|
42
42
|
if (left_viewWidth >= _this.leftPaneMinWidth && right_viewWidth >= _this.rightPaneMinWidth && third_viewWidth >= _this.thirdPaneMinWidth) {
|
|
43
|
+
console.log(whole, left_viewWidth, third_viewWidth);
|
|
43
44
|
_this.splitFraction = whole === 0 ? 0.0 : left_viewWidth / whole;
|
|
44
45
|
_this.splitFractionRight = whole === 0 ? 0.0 : third_viewWidth / whole;
|
|
45
46
|
_this.updateUI();
|
|
@@ -76,7 +77,7 @@ var SplitPaneView = /*#__PURE__*/function (_Component) {
|
|
|
76
77
|
var split_third = 1 - split_left - split_right;
|
|
77
78
|
_this.state = {
|
|
78
79
|
style: {
|
|
79
|
-
gridTemplateColumns: "".concat(
|
|
80
|
+
gridTemplateColumns: "".concat(_this.splitFraction, "fr ").concat(_this.dividerWidth, "px ").concat(1 - _this.splitFraction - _this.splitFractionRight, "fr ").concat(_this.dividerWidth, "px ").concat(_this.splitFractionRight, "fr")
|
|
80
81
|
}
|
|
81
82
|
};
|
|
82
83
|
|