Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Bombardi committed Aug 8, 2022
1 parent b2e207c commit a2accab
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
> 0.5%
last 2 versions
last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
# not dead
# IE 9-11
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

# Alternatevely to this file, the following configuration could be specified in package.json
# "browserslist": [
Expand Down
14 changes: 11 additions & 3 deletions lib/modules/scheduler/calendar-scheduler-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import { CalendarSchedulerUtils } from './utils/calendar-scheduler-utils.provide
* [style.left.%]="event.left"
* [style.width.%]="event.width"
*
* DRAG & DROP & RESIZE -> https://github.com/mattlewis92/angular-calendar/blob/master/projects/angular-calendar/src/modules/week/calendar-week-view.component.ts
* DRAG & DROP & RESIZE -> https://github.com/mattlewis92/angular-calendar/blob/main/projects/angular-calendar/src/modules/week/calendar-week-view.component.ts
* FLEXBOX -> https://css-tricks.com/snippets/css/a-guide-to-flexbox/
*/
@Component({
Expand Down Expand Up @@ -449,6 +449,11 @@ export class CalendarSchedulerViewComponent implements OnInit, OnChanges, OnDest
*/
calendarId: symbol = Symbol('angular calendar scheduler view id');

/**
* @hidden
*/
rtl = false;

/**
* @hidden
*/
Expand Down Expand Up @@ -727,8 +732,11 @@ export class CalendarSchedulerViewComponent implements OnInit, OnChanges, OnDest
this.resizes.set(event.event, resizeEvent);
this.dayColumnWidth = Math.floor(eventsContainer.offsetWidth / this.days.length);

const resizeHelper: CalendarResizeHelper = new CalendarResizeHelper(eventsContainer);
this.validateResize = ({ rectangle }) => resizeHelper.validateResize({ rectangle });
const resizeHelper: CalendarResizeHelper = new CalendarResizeHelper(eventsContainer, this.dayColumnWidth, this.rtl);
this.validateResize = ({ rectangle, edges }) => resizeHelper.validateResize({
rectangle: { ...rectangle },
edges
});
this.cdr.markForCheck();
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.8",
"@types/node": "^12.11.1",
"angular-calendar": "0.28.22",
"angular-draggable-droppable": "^4.5.5",
"angular-resizable-element": "^3.3.3",
"angular-calendar": "0.29.0",
"angular-draggable-droppable": "^6.0.0",
"angular-resizable-element": "^5.0.0",
"autoprefixer": "^9.0.0",
"bootstrap": "^5.2.0",
"codelyzer": "^6.0.0",
Expand Down

0 comments on commit a2accab

Please sign in to comment.