Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-relative-portal

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-relative-portal - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

10

dist/RelativePortal.js

@@ -119,7 +119,10 @@ 'use strict';

var right = _props.right;
var fullWidth = _props.fullWidth;
var props = _objectWithoutProperties(_props, ['component', 'top', 'left', 'right']);
var props = _objectWithoutProperties(_props, ['component', 'top', 'left', 'right', 'fullWidth']);
var verticalPosition = right !== undefined ? { right: this.state.right + right } : { left: this.state.left + left };
var fromLeftOrRight = right !== undefined ? { right: this.state.right + right } : { left: this.state.left + left };
var horizontalPosition = fullWidth ? { right: this.state.right + right, left: this.state.left + left } : fromLeftOrRight;
return _react2.default.createElement(

@@ -141,3 +144,3 @@ Comp,

top: this.state.top + top
}, verticalPosition)
}, horizontalPosition)
},

@@ -157,2 +160,3 @@ this.props.children

left: _react.PropTypes.number,
fullWidth: _react.PropTypes.bool,
top: _react.PropTypes.number,

@@ -159,0 +163,0 @@ children: _react.PropTypes.any,

{
"name": "react-relative-portal",
"version": "1.1.4",
"version": "1.1.5",
"description": "React component for place dropdowns outside overflow: hidden; elements",

@@ -5,0 +5,0 @@ "main": "dist/RelativePortal.js",

@@ -63,2 +63,3 @@ # React relative portal

left: PropTypes.number, // set left offset from current position. If `right` prop is set, `left` ignores
fullWidth: PropTypes.bool, // enables you to set both left and right portal positions
top: PropTypes.number, // set top offset from current position

@@ -65,0 +66,0 @@ children: PropTypes.any.isRequired, // portal content

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc