@syncfusion/ej2-popups
Advanced tools
Comparing version 16.4.45 to 16.4.47
@@ -5,2 +5,10 @@ # Changelog | ||
### Dialog | ||
#### Bug Fixes | ||
- Provided an additional argument in beforeOpen event to control the max-height of dialog. | ||
## 16.4.45 (2019-01-02) | ||
### Tooltip | ||
@@ -7,0 +15,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.4.45 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
* version : 16.4.47 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
@@ -6,0 +6,0 @@ * A copy of the current license can be obtained at any time by e-mailing |
{ | ||
"name": "@syncfusion/ej2-popups", | ||
"version": "16.4.45", | ||
"version": "16.4.47", | ||
"description": "A package of Essential JS 2 popup components such as Dialog and Tooltip that is used to display information or messages in separate pop-ups.", | ||
@@ -11,4 +11,4 @@ "author": "Syncfusion Inc.", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~16.4.42", | ||
"@syncfusion/ej2-buttons": "~16.4.42" | ||
"@syncfusion/ej2-base": "~16.4.47", | ||
"@syncfusion/ej2-buttons": "~16.4.47" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
@@ -91,2 +91,2 @@ # ej2-popups | ||
© Copyright 2018 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution. | ||
© Copyright 2019 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution. |
@@ -68,2 +68,6 @@ import { Component, EmitType } from '@syncfusion/ej2-base'; | ||
/** | ||
* Specify the value to override max-height value of dialog. | ||
*/ | ||
maxHeight: string; | ||
/** | ||
* Defines whether the current action can be prevented. | ||
@@ -152,2 +156,3 @@ */ | ||
private calculatezIndex; | ||
private allowMaxHeight; | ||
/** | ||
@@ -154,0 +159,0 @@ * Specifies the value that can be displayed in dialog's content area. |
@@ -139,2 +139,3 @@ var __extends = (this && this.__extends) || (function () { | ||
this.headerContent = null; | ||
this.allowMaxHeight = true; | ||
var classArray = []; | ||
@@ -528,2 +529,5 @@ for (var j = 0; j < this.element.classList.length; j++) { | ||
Dialog.prototype.setMaxHeight = function () { | ||
if (!this.allowMaxHeight) { | ||
return; | ||
} | ||
var display = this.element.style.display; | ||
@@ -963,3 +967,4 @@ this.element.style.display = 'none'; | ||
container: this.isModal ? this.dlgContainer : this.element, | ||
target: this.target | ||
target: this.target, | ||
maxHeight: this.element.style.maxHeight | ||
}; | ||
@@ -970,2 +975,6 @@ this.trigger('beforeOpen', eventArgs); | ||
} | ||
if (this.element.style.maxHeight !== eventArgs.maxHeight) { | ||
this.allowMaxHeight = false; | ||
this.element.style.maxHeight = eventArgs.maxHeight; | ||
} | ||
this.storeActiveElement = document.activeElement; | ||
@@ -972,0 +981,0 @@ this.element.tabIndex = -1; |
@@ -453,4 +453,8 @@ var __extends = (this && this.__extends) || (function () { | ||
var data = fit(this.element, this.viewPortElement, param); | ||
this.element.style.left = data.left + 'px'; | ||
this.element.style.top = data.top + 'px'; | ||
if (param.X) { | ||
this.element.style.left = data.left + 'px'; | ||
} | ||
if (param.Y) { | ||
this.element.style.top = data.top + 'px'; | ||
} | ||
} | ||
@@ -457,0 +461,0 @@ else { |
@@ -942,2 +942,3 @@ var __extends = (this && this.__extends) || (function () { | ||
this.unwireEvents(this.opensOn); | ||
this.unwireMouseEvents(this.element); | ||
if (this.popupObj) { | ||
@@ -944,0 +945,0 @@ this.popupObj.destroy(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
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
Sorry, the diff of this file is not supported yet
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
2284750
25243
0