Skip to content

Commit a3b6432

Browse files
author
pipeline
committed
v17.1.41 is released
1 parent f7e89bd commit a3b6432

File tree

494 files changed

+10287
-2684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+10287
-2684
lines changed

controls/base/dist/ej2-base.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/ej2-base.umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es2015.js

+20-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es2015.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es5.js

+20-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/es6/ej2-base.es5.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/global/ej2-base.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/dist/global/ej2-base.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/base/src/draggable.ts

+19-2
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,19 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
356356
clearTimeout(this.tapHoldTimer);
357357
EventHandler.remove(document, Browser.touchMoveEvent, this.removeTapholdTimer);
358358
}
359+
/* istanbul ignore next */
360+
private getScrollableParent(element: HTMLElement, axis: string): HTMLElement {
361+
let scroll: Object = { 'vertical': 'scrollHeight', 'horizontal': 'scrollWidth' };
362+
let client: Object = { 'vertical': 'clientHeight', 'horizontal': 'clientWidth' };
363+
if (isNullOrUndefined(element)) {
364+
return null;
365+
}
366+
if (element[scroll[axis]] > element[client[axis]]) {
367+
return element;
368+
} else {
369+
return this.getScrollableParent(element.parentNode as HTMLElement, axis);
370+
}
371+
}
359372
private initialize(evt: MouseEvent & TouchEvent, curTarget?: EventTarget): void {
360373
this.target = <HTMLElement>(evt.currentTarget || curTarget);
361374
this.dragProcessStarted = false;
@@ -372,8 +385,12 @@ export class Draggable extends Base<HTMLElement> implements INotifyPropertyChang
372385
this.initialPosition = { x: intCoord.pageX, y: intCoord.pageY };
373386
if (!this.clone) {
374387
let pos: PositionModel = this.element.getBoundingClientRect();
375-
this.relativeXPosition = intCoord.pageX - pos.left;
376-
this.relativeYPosition = intCoord.pageY - pos.top;
388+
let verticalScrollParent: HTMLElement = this.getScrollableParent(this.element.parentNode as HTMLElement, 'vertical');
389+
let horizontalScrollParent: HTMLElement = this.getScrollableParent(this.element.parentNode as HTMLElement, 'horizontal');
390+
let parentScrollX: number = horizontalScrollParent ? horizontalScrollParent.scrollLeft : 0;
391+
let parentScrollY: number = verticalScrollParent ? verticalScrollParent.scrollTop : 0;
392+
this.relativeXPosition = intCoord.pageX - (pos.left + parentScrollX);
393+
this.relativeYPosition = intCoord.pageY - (pos.top + parentScrollY);
377394
}
378395
if (this.externalInitialize) {
379396
this.intDragStart(evt);

controls/base/src/internationalization.ts

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ export class Internationalization {
160160
* Returns the parser function for given options.
161161
* @param {DateFormatOptions} options - Specifies the format options in which the parser function will return.
162162
* @returns {Function}
163-
* @private
164163
*/
165164
public getDateParser(options?: DateFormatOptions): Function {
166165
return DateParser.dateParser(this.getCulture(), options || { skeleton: 'short', type: 'date' }, cldrData);

controls/buttons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-buttons",
3-
"version": "17.1.38",
3+
"version": "17.1.40",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/calendars/CHANGELOG.md

+29
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,35 @@
22

33
## [Unreleased]
44

5+
## 17.1.41 (2019-04-16)
6+
7+
### DatePicker
8+
9+
#### Bug Fixes
10+
11+
- #231875 - Now, you can enable the clear button dynamically after disabled the control.
12+
13+
- #F143747 - Now, you can set min and max value as null dynamically.
14+
15+
### DateTimePicker
16+
17+
#### Bug Fixes
18+
19+
- #231596, #232441 - Issue with clear button not shown when disable the `allowEdit` property has been fixed.
20+
21+
### DateRangePicker
22+
23+
#### Bug Fixes
24+
25+
- #231596, #232441 - Issue with clear button not shown when disable the `allowEdit` property has been fixed.
26+
27+
### TimePicker
28+
29+
#### Bug Fixes
30+
31+
- #231596, #232441 - Issue with clear button not shown when disable the `allowEdit` property has been fixed.
32+
- #231003 Issue with different icon size in bootstrap theme has been fixed.
33+
534
## 17.1.32-beta (2019-03-13)
635

736
### DatePicker

controls/calendars/dist/ej2-calendars.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/ej2-calendars.umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)