ng2-material-dropdown
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -340,2 +340,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
} | ||
var element = this.getMenuElement(); | ||
var supportPageOffset = window.pageXOffset !== undefined; | ||
@@ -347,7 +348,6 @@ var isCSS1Compat = ((document.compatMode || '') === 'CSS1Compat'); | ||
document.documentElement.scrollTop : document.body.scrollTop; | ||
var _a = this.applyOffset(position.top + y - 15 + "px", position.left + x - 5 + "px"), top = _a.top, left = _a.left; | ||
var element = this.getMenuElement(); | ||
var _a = this.applyOffset(position.top + (this.appendToBody ? y - 15 : 0) + "px", position.left + x - 5 + "px"), top = _a.top, left = _a.left; | ||
var clientWidth = element.clientWidth; | ||
var clientHeight = element.clientHeight; | ||
var marginFromBottom = parseInt(top) + clientHeight; | ||
var marginFromBottom = parseInt(top) + clientHeight + (this.appendToBody ? 0 : y - 15); | ||
var marginFromRight = parseInt(left) + clientWidth; | ||
@@ -354,0 +354,0 @@ var windowScrollHeight = window.innerHeight + window.scrollY; |
@@ -60,2 +60,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
var element = this.getMenuElement(); | ||
var supportPageOffset = window.pageXOffset !== undefined; | ||
@@ -67,7 +68,6 @@ var isCSS1Compat = ((document.compatMode || '') === 'CSS1Compat'); | ||
document.documentElement.scrollTop : document.body.scrollTop; | ||
var _a = this.applyOffset(position.top + y - 15 + "px", position.left + x - 5 + "px"), top = _a.top, left = _a.left; | ||
var element = this.getMenuElement(); | ||
var _a = this.applyOffset(position.top + (this.appendToBody ? y - 15 : 0) + "px", position.left + x - 5 + "px"), top = _a.top, left = _a.left; | ||
var clientWidth = element.clientWidth; | ||
var clientHeight = element.clientHeight; | ||
var marginFromBottom = parseInt(top) + clientHeight; | ||
var marginFromBottom = parseInt(top) + clientHeight + (this.appendToBody ? 0 : y - 15); | ||
var marginFromRight = parseInt(left) + clientWidth; | ||
@@ -74,0 +74,0 @@ var windowScrollHeight = window.innerHeight + window.scrollY; |
{ | ||
"name": "ng2-material-dropdown", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Angular material-like dropdown component", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
60
1544
175818
1
0