Skip to content

Commit 9511a0f

Browse files
committed
Fix tooltip error with draggable columns
- added draggable columns option to autotooltips example - patched autotooltips plugin as per mleibman/SlickGrid#1056 - the HTML encoding mentioned in the pull request has been removed already in the current master - thanks to B1nke
1 parent 0145d1a commit 9511a0f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/example-autotooltips.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ <h2>View Source:</h2>
3535

3636
<script src="../lib/jquery-1.11.2.min.js"></script>
3737
<script src="../lib/jquery.event.drag-2.2.js"></script>
38+
<script src="../lib/jquery-ui-1.11.3.min.js"></script>
3839

3940
<script src="../slick.core.js"></script>
4041
<script src="../slick.grid.js"></script>
@@ -53,7 +54,7 @@ <h2>View Source:</h2>
5354

5455
var options = {
5556
enableCellNavigation: true,
56-
enableColumnReorder: false
57+
enableColumnReorder: true
5758
};
5859

5960
$(function () {

plugins/slick.autotooltips.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
function handleHeaderMouseEnter(e, args) {
7070
var column = args.column,
7171
$node = $(e.target).closest(".slick-header-column");
72-
if (!column.toolTip) {
72+
if (column && !column.toolTip) {
7373
$node.attr("title", ($node.innerWidth() < $node[0].scrollWidth) ? column.name : "");
7474
}
7575
}

0 commit comments

Comments
 (0)