Socket
Socket
Sign inDemoInstall

h5-menudropdown

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h5-menudropdown - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0

2

package.json
{
"name": "h5-menudropdown",
"version": "0.0.9",
"version": "0.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/h5-menudropdown.js",

@@ -44,29 +44,30 @@ var React = require('react');

if(top_icon <= (altura_html/2) && left_icon <= (largura_html/2)){
style = {
left: left_icon,
top: top_icon + altura_icon + 2,
position: 'absolute'
if(icon_abs_pos){
if(icon_abs_pos.top <= (altura_html/2) && icon_abs_pos.left <= (largura_html/2)){
style = {
left: left_icon,
top: top_icon + altura_icon + 6,
position: 'absolute'
}
}
}
if(top_icon > (altura_html/2) && left_icon <= (largura_html/2)){
style = {
left: left_icon,
bottom: document.documentElement.clientHeight - icon_abs_pos.top + 2,
position: 'absolute'
if(icon_abs_pos.top > (altura_html/2) && icon_abs_pos.left <= (largura_html/2)){
style = {
left: left_icon,
bottom: document.documentElement.clientHeight - icon_abs_pos.top + 6,
position: 'absolute'
}
}
}
if(top_icon <= (altura_html/2) && left_icon >= (largura_html/2)){
style = {
right: document.documentElement.clientWidth - left_icon,
top: top_icon + altura_icon + 2,
position: 'absolute'
if(icon_abs_pos.top <= (altura_html/2) && icon_abs_pos.left >= (largura_html/2)){
style = {
right: document.documentElement.clientWidth - left_icon,
top: top_icon + altura_icon + 6,
position: 'absolute'
}
}
}
if(top_icon > (altura_html/2) && left_icon >= (largura_html/2)){
style = {
right: document.documentElement.clientWidth - left_icon,
bottom: document.documentElement.clientHeight - icon_abs_pos.top + 2,
position: 'absolute'
if(icon_abs_pos.top > (altura_html/2) && icon_abs_pos.left >= (largura_html/2)){
style = {
right: document.documentElement.clientWidth - left_icon,
bottom: document.documentElement.clientHeight - icon_abs_pos.top + 6,
position: 'absolute'
}
}

@@ -73,0 +74,0 @@ }

Sorry, the diff of this file is not supported yet

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