cytoscape-context-menus
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -202,5 +202,3 @@ ;(function(){ 'use strict'; | ||
if (currentCxtMenuPosition != cyPos) { | ||
var cxtMenuWidth = $cxtMenu.width(); | ||
var cxtMenuHeight = $cxtMenu.height(); | ||
if( currentCxtMenuPosition != cyPos ) { | ||
hideMenuItemComponents(); | ||
@@ -215,13 +213,3 @@ setScratchProp('anyVisibleChild', false);// we hide all children there is no visible child remaining | ||
var top = containerPos.top + renderedPos.y; | ||
var windowHeight = window.innerHeight; | ||
var windowWidth = window.innerWidth; | ||
if (left + cxtMenuWidth > windowWidth) { | ||
left = left - cxtMenuWidth; | ||
} | ||
if (top + cxtMenuHeight > windowHeight) { | ||
top = top - cxtMenuHeight | ||
} | ||
$cxtMenu.css('left', left); | ||
@@ -228,0 +216,0 @@ $cxtMenu.css('top', top); |
{ | ||
"name": "cytoscape-context-menus", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "A Cytoscape.js extension to provide context menu around elements and core instance.", | ||
@@ -5,0 +5,0 @@ "main": "cytoscape-context-menus.js", |
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
66007
542