dante2-editor 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/docs/dante.js CHANGED
@@ -1968,11 +1968,13 @@ var DanteInlineTooltip = function (_React$Component) {
1968
1968
  return;
1969
1969
  }
1970
1970
 
1971
+ if (!coords) return;
1972
+
1971
1973
  // checkeamos si esta vacio
1972
1974
  this.display(block.getText().length === 0 && blockType === "unstyled");
1973
1975
  return this.setPosition({
1974
- top: coords.top + window.scrollY,
1975
- left: coords.left + window.scrollX - 60
1976
+ top: coords.top + window.pageYOffset,
1977
+ left: coords.left + window.pageXOffset - 60
1976
1978
  });
1977
1979
 
1978
1980
  /*