@zzish/math-rich-input 0.1.9 → 0.1.11
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.
- package/dist/index.js +7 -10
- package/dist/math-rich-input.css +0 -1
- package/package.json +1 -1
- package/src/AccentBar.jsx +1 -1
package/dist/index.js
CHANGED
|
@@ -19765,10 +19765,11 @@ var AccentBar = /*#__PURE__*/function (_React$Component) {
|
|
|
19765
19765
|
|
|
19766
19766
|
var toolBarBounds = thisBar.parentNode.getBoundingClientRect();
|
|
19767
19767
|
var inputBounds = node.getBoundingClientRect();
|
|
19768
|
+
console.log(node, inputBounds);
|
|
19768
19769
|
var thisBounds = thisBar.getBoundingClientRect();
|
|
19769
19770
|
this.shouldUpdatePosition = false; // Vertically align below input field
|
|
19770
19771
|
|
|
19771
|
-
var top = inputBounds.
|
|
19772
|
+
var top = inputBounds.height + toolBarBounds.height + 5;
|
|
19772
19773
|
if (this.props.compactMode) top = inputBounds.height; // Horizontally align
|
|
19773
19774
|
|
|
19774
19775
|
var right = 0; // right align
|
|
@@ -22806,15 +22807,11 @@ var MathRichInput = /*#__PURE__*/function (_React$Component) {
|
|
|
22806
22807
|
}
|
|
22807
22808
|
});
|
|
22808
22809
|
|
|
22809
|
-
_defineProperty(_assertThisInitialized(_this2), "handleBlur", function (event) {
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
});
|
|
22815
|
-
} catch (error) {
|
|
22816
|
-
console.error(error);
|
|
22817
|
-
}
|
|
22810
|
+
_defineProperty(_assertThisInitialized(_this2), "handleBlur", function (event) {// try {
|
|
22811
|
+
// this.setState({ hasFocus: false, showAccentBar: false });
|
|
22812
|
+
// } catch (error) {
|
|
22813
|
+
// console.error(error);
|
|
22814
|
+
// }
|
|
22818
22815
|
});
|
|
22819
22816
|
|
|
22820
22817
|
_this2.state = {
|
package/dist/math-rich-input.css
CHANGED
package/package.json
CHANGED
package/src/AccentBar.jsx
CHANGED
|
@@ -625,7 +625,7 @@ export default class AccentBar extends React.Component {
|
|
|
625
625
|
this.shouldUpdatePosition = false;
|
|
626
626
|
|
|
627
627
|
// Vertically align below input field
|
|
628
|
-
let top = inputBounds.
|
|
628
|
+
let top = inputBounds.height + toolBarBounds.height + 5;
|
|
629
629
|
if (this.props.compactMode) top = inputBounds.height;
|
|
630
630
|
|
|
631
631
|
// Horizontally align
|