Skip to content

Commit

Permalink
Merge pull request #221 from danheron/fix/dragdop-touch-events
Browse files Browse the repository at this point in the history
Fixed formatting issue when using dragdrop with touch events
  • Loading branch information
danheron authored Jan 23, 2025
2 parents 14d7a30 + e65e332 commit f071789
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion Heron.MudCalendar/Base/DayWeekViewBase.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ protected virtual string EventStyle(ItemPosition position)
.AddStyle("position", "absolute")
.AddStyle("top", $"{position.Top}px")
.AddStyle("height", $"{position.Height}px")
.AddStyle("overflow", "hidden")
.AddStyle("left",
(((position.Position / (double)position.Total) - (1.0 / position.Total)) * 100).ToInvariantString() +
"%")
Expand Down
8 changes: 5 additions & 3 deletions Heron.MudCalendar/Components/WeekDropZone.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@namespace Heron.MudCalendar
@inject IJSRuntime JsRuntime

<MudDropZone T="CalendarItem" Identifier="@Position?.Item.Id" Class="@Classname" Style="@Style">
@ChildContent
</MudDropZone>
<div Class="@Classname" Style="@Style">
<MudDropZone T="CalendarItem" Identifier="@Position?.Item.Id" Style="height: 100%;">
@ChildContent
</MudDropZone>
</div>
4 changes: 2 additions & 2 deletions Heron.MudCalendar/Styles/Heron.MudCalendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@
transition: none;
}

.mud-cal-drop-item > .mud-drop-item {
.mud-cal-drop-item .mud-drop-item {
height: 100%;
border: none;
}

.mud-cal-drop-item > .mud-drop-item.disabled {
.mud-cal-drop-item .mud-drop-item.disabled {
cursor: inherit;
}

Expand Down
4 changes: 2 additions & 2 deletions Heron.MudCalendar/Styles/_dragDrop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
transition: none;
}

.mud-cal-drop-item > .mud-drop-item {
.mud-cal-drop-item .mud-drop-item {
height: 100%;
border: none;
}

.mud-cal-drop-item > .mud-drop-item.disabled {
.mud-cal-drop-item .mud-drop-item.disabled {
cursor: inherit;
}

Expand Down

0 comments on commit f071789

Please sign in to comment.