@seafile/sdoc-editor 1.0.29 → 1.0.30

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.
@@ -136,8 +136,8 @@ export const getCalloutMenuPosition = (element, editor) => {
136
136
  top: menuTop,
137
137
  left: left // left = callout left distance
138
138
  };
139
- // 165 is distance with browser top
140
- if (editor.editorType === DOCUMENT_PLUGIN_EDITOR && menuTop < 165) {
139
+ // 201 is distance with browser top
140
+ if (editor.editorType === DOCUMENT_PLUGIN_EDITOR && menuTop < 201) {
141
141
  newMenuPosition['display'] = 'none';
142
142
  }
143
143
  return newMenuPosition;
@@ -44,7 +44,7 @@ class Link extends React.Component {
44
44
  editor
45
45
  } = this.props;
46
46
  const menuPosition = getMenuPosition(element);
47
- if (editor.editorType === DOCUMENT_PLUGIN_EDITOR && menuPosition.top < 165) {
47
+ if (editor.editorType === DOCUMENT_PLUGIN_EDITOR && menuPosition.top < 201) {
48
48
  menuPosition['display'] = 'none';
49
49
  }
50
50
  this.setState({
@@ -135,8 +135,8 @@ function SeaTableTable(_ref) {
135
135
  top: menuTop,
136
136
  left: left // left = code-block left distance
137
137
  };
138
- // 165 is distance with browser top
139
- if (menuTop < 165) {
138
+ // 201 is distance with browser top
139
+ if (menuTop < 201) {
140
140
  newMenuPosition['display'] = 'none';
141
141
  }
142
142
  setMenuPosition(newMenuPosition);
@@ -169,8 +169,8 @@ function SeaTableTable(_ref) {
169
169
  top: menuTop,
170
170
  left: left // left = callout left distance
171
171
  };
172
- // 165 is distance with browser top
173
- if (menuTop < 165) {
172
+ // 201 is distance with browser top
173
+ if (menuTop <= 201) {
174
174
  newMenuPosition['display'] = 'none';
175
175
  }
176
176
  setMenuPosition(newMenuPosition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",