Skip to content

Commit

Permalink
fix(gantt): use box-sizing border box for task and milestones
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Nov 29, 2021
1 parent 74b0954 commit 874d0af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/default/scss/gantt/_layout.scss
Expand Up @@ -121,10 +121,11 @@
background: none;

.k-task-milestone-content {
width: .875em;
height: .875em;
width: 100%;
height: 100%;
border-width: 1px;
border-style: solid;
box-sizing: border-box;
transform: rotate(45deg);
}
}
Expand Down Expand Up @@ -455,6 +456,7 @@
height: 1em;
border-width: 1px;
border-style: solid;
box-sizing: border-box;
transform: rotate(45deg);
}

Expand Down Expand Up @@ -507,6 +509,7 @@
@include border-radius( $border-radius );
border-width: $gantt-task-border-width;
border-style: solid;
box-sizing: border-box;
cursor: default;

.k-resize-handle {
Expand Down
4 changes: 2 additions & 2 deletions tests/visual/src/misc/gantt-react.html
Expand Up @@ -203,8 +203,8 @@
Market Research
</td>
<td>
<div class="k-task k-task-single" style="left: 83px; top: 8px; width: 8px;">
<div class="k-task-complete" style="width: 7px;"></div>
<div class="k-task k-task-single" style="left: 83px; top: 8px; width: 200px;">
<div class="k-task-complete" style="width: 50px;"></div>
<div class="k-task-content">Market Research</div>
<span class="k-task-actions">
<a class="k-link k-task-delete">
Expand Down

0 comments on commit 874d0af

Please sign in to comment.