dante2-editor 0.4.0 → 0.4.1

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.
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
  /*