@zzish/math-rich-input 0.1.10 → 0.1.12

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 CHANGED
@@ -19768,7 +19768,7 @@ var AccentBar = /*#__PURE__*/function (_React$Component) {
19768
19768
  var thisBounds = thisBar.getBoundingClientRect();
19769
19769
  this.shouldUpdatePosition = false; // Vertically align below input field
19770
19770
 
19771
- var top = inputBounds.bottom - toolBarBounds.height;
19771
+ var top = inputBounds.height + toolBarBounds.height + 5;
19772
19772
  if (this.props.compactMode) top = inputBounds.height; // Horizontally align
19773
19773
 
19774
19774
  var right = 0; // right align
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzish/math-rich-input",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "React component for user to enter rich text with embedded math equations.",
5
5
  "repository": {
6
6
  "type": "git",
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.bottom - toolBarBounds.height;
628
+ let top = inputBounds.height + toolBarBounds.height + 5;
629
629
  if (this.props.compactMode) top = inputBounds.height;
630
630
 
631
631
  // Horizontally align