Socket
Socket
Sign inDemoInstall

draft-js-alignment-plugin

Package Overview
Dependencies
34
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-rc5 to 2.0.0-rc7

LICENSE

4

lib/AlignmentTool/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc