Skip to content

Commit

Permalink
fix(spreadsheet): insufficient textarea height in insert comment dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Juveniel authored and joneff committed May 8, 2019
1 parent 3060b88 commit cff788a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/default/scss/spreadsheet/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@
cursor: cell;
}


// Border rendering
.k-spreadsheet-vborder {
position: absolute;
Expand Down Expand Up @@ -784,6 +784,12 @@
}
}


// Insert comment dialog
.k-spreadsheet-insert-comment textarea {
height: auto;
}

}


Expand Down
45 changes: 45 additions & 0 deletions tests/visual/spreadsheet-dialogs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!doctype html>
<html lang="en" class="k-typography">
<head>
<title>Spreadsheet Dialogs</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../packages/default/dist/all.css" />
<link rel="stylesheet" href="assets/styles.css" />
<script src="assets/scripts.js"></script>

<style>
#test-area {
min-height: 600px;
}
</style>
</head>
<body>
<div id="test-area" class="grid">

<div class="k-widget k-window" data-role="draggable" style="position: relative; display: flex; align-self: flex-start; width: 450px;">
<div class="k-window-titlebar k-header">
<span class="k-window-title">Insert comment</span>
<div class="k-window-actions">
<a role="button" href="#" class="k-button k-bare k-button-icon k-window-action">
<span class="k-icon k-i-close"></span>
</a>
</div>
</div>
<div class="k-spreadsheet-window k-action-window k-popup-edit-form k-spreadsheet-insert-comment k-window-content k-content">
<div class="k-edit-label">
<label>Comment:</label>
</div>
<div class="k-edit-field">
<textarea rows="5" class="k-textbox"></textarea>
</div>
<div class="k-action-buttons">
<button class="k-button k-left">Remove comment</button>
<button class="k-button k-primary">OK</button>
<button class="k-button">Cancel</button>
</div>
</div>
</div>

</div>
</body>
</html>

0 comments on commit cff788a

Please sign in to comment.