draft-js-alignment-plugin
Advanced tools
Comparing version 2.0.0-rc5 to 2.0.0-rc7
@@ -39,5 +39,2 @@ 'use strict'; | ||
// TODO make toolbarHeight to be determined or a parameter | ||
var toolbarHeight = 44; | ||
var getRelativeParent = function getRelativeParent(element) { | ||
@@ -79,2 +76,3 @@ if (!element) { | ||
var relativeParent = getRelativeParent(_this.toolbar.parentElement); | ||
var toolbarHeight = _this.toolbar.clientHeight; | ||
var relativeRect = relativeParent ? relativeParent.getBoundingClientRect() : document.body.getBoundingClientRect(); | ||
@@ -81,0 +79,0 @@ position = { |
{ | ||
"name": "draft-js-alignment-plugin", | ||
"version": "2.0.0-rc5", | ||
"version": "2.0.0-rc7", | ||
"description": "Alignment Plugin for DraftJS", | ||
@@ -34,3 +34,3 @@ "author": { | ||
"decorate-component-with-props": "^1.0.2", | ||
"draft-js-buttons": "^2.0.0-rc5", | ||
"draft-js-buttons": "^2.0.0-rc7", | ||
"find-with-regex": "^1.0.2", | ||
@@ -37,0 +37,0 @@ "immutable": "~3.7.4", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21904
13
383
1
+ Addedua-parser-js@0.7.37(transitive)
- Removedua-parser-js@0.7.38(transitive)
Updateddraft-js-buttons@^2.0.0-rc7