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

material

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material - npm Package Compare versions

Comparing version 0.8.6 to 0.8.7

2

package.json
{
"name": "material",
"version": "0.8.6",
"version": "0.8.7",
"description": "A lightweight implementation of Material Design Components for the web - ES6",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,3 +8,2 @@ export default {

const name = this.constructor.name
console.log('constructor', name)

@@ -17,11 +16,4 @@ if (!target) return

console.log('caller', caller)
console.log('screen', screen)
console.log('element', element)
let left, top
console.log('align', align)
console.log('target left', caller.left)
switch (align) {

@@ -45,9 +37,11 @@ case 'left':

// ensure that the element remains within the limits of its container
if (left < 0) left = offsetX
if (left + element.width + offsetX > screen.width) {
left = caller.left - element.width + caller.width - offsetX
left = screen.width - element.width - offsetX
}
console.log('left', left)
// console.log('left', left)

@@ -83,8 +77,2 @@ // left = Math.max(offsetX, Math.min(left, screen.width - element.width - offsetX))

// if (this.options.class !== 'menu') {
// top = Math.max(offsetY, Math.min(top, screen.height - element.height - offsetY))
// }
console.log('top', top)
this.element.style.left = `${left}px`

@@ -91,0 +79,0 @@ this.element.style.top = `${top}px`

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