h5-menudropdown
Advanced tools
Comparing version 0.0.9 to 0.1.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
914098
3917