Skip to content

Commit e6e02c5

Browse files
author
Matt Lewis
committed
fix(weekView): stop events pushing others along when resizing
Fixes #191
1 parent ccd05d5 commit e6e02c5

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"dependencies": {
145145
"angular-draggable-droppable": "^1.0.1",
146146
"angular-resizable-element": "^1.1.1",
147-
"calendar-utils": "0.0.48",
147+
"calendar-utils": "0.0.49",
148148
"date-fns": "^1.28.5",
149149
"positioning": "^1.0.4"
150150
}

scss/week-view.scss

+6
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@
2727
opacity: 0.5;
2828
}
2929

30+
.cal-events-row {
31+
position: relative;
32+
height: 33px;
33+
}
34+
3035
.cal-event-container {
3136
display: inline-block;
37+
position: absolute;
3238
}
3339

3440
.cal-event {

src/components/week/calendarWeekView.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ export class CalendarWeekViewComponent implements OnChanges, OnInit, OnDestroy {
350350
viewDate: this.viewDate,
351351
weekStartsOn: this.weekStartsOn,
352352
excluded: this.excludeDays,
353-
precision: this.precision
353+
precision: this.precision,
354+
absolutePositionedEvents: true
354355
});
355356
}
356357

yarn.lock

+4-8
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,9 @@ cachedir@^1.1.0:
778778
dependencies:
779779
os-homedir "^1.0.1"
780780

781-
782-
version "0.0.48"
783-
resolved "https://registry.yarnpkg.com/calendar-utils/-/calendar-utils-0.0.48.tgz#10c17ac0bab4a2f95700d99cef328baf85fe846d"
781+
782+
version "0.0.49"
783+
resolved "https://registry.yarnpkg.com/calendar-utils/-/calendar-utils-0.0.49.tgz#1bfa57a9de8ee843cb22ef205a8508987f5e266c"
784784

785785
786786
version "1.0.0"
@@ -3980,11 +3980,7 @@ miller-rabin@^4.0.0:
39803980
bn.js "^4.0.0"
39813981
brorand "^1.0.1"
39823982

3983-
"mime-db@>= 1.27.0 < 2":
3984-
version "1.28.0"
3985-
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.28.0.tgz#fedd349be06d2865b7fc57d837c6de4f17d7ac3c"
3986-
3987-
mime-db@~1.27.0:
3983+
"mime-db@>= 1.27.0 < 2", mime-db@~1.27.0:
39883984
version "1.27.0"
39893985
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1"
39903986

0 commit comments

Comments
 (0)