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

@br0ken/simpletooltip

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@br0ken/simpletooltip - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

2

package.json

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "3.2.0",
"version": "3.3.0",
"homepage": "https://github.com/BR0kEN-/simpleTooltip",

@@ -9,0 +9,0 @@ "description": "CSS tooltips with position control via JS.",

@@ -33,2 +33,8 @@ /**

function setup(hint) {
if (hint.simpleTooltipProcessed) {
return;
}
hint.simpleTooltipProcessed = true;
var title = hint.getAttribute('title');

@@ -95,5 +101,5 @@ var hintStyle = window.getComputedStyle(hint);

if (shift.length < 5) {
var elementOffsetLeft = this.offsetLeft || this.parentNode.offsetLeft;
var noPixelsAtRight = window.innerWidth - (elementOffsetLeft + this.offsetWidth + 20) < plugin.maxWidth;
var noPixelsAtLeft = elementOffsetLeft - 20 < plugin.maxWidth;
var dimensions = this.getBoundingClientRect();
var noPixelsAtRight = window.innerWidth - (dimensions.left + dimensions.width + 20) < plugin.maxWidth;
var noPixelsAtLeft = dimensions.left - 20 < plugin.maxWidth;

@@ -100,0 +106,0 @@ // Auto-positioning of the tooltip if it's wider than space to

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