Skip to content

Commit

Permalink
Fix #306, #406: Absolutely-position ColumnHider node and use icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth G. Franqueiro committed Mar 4, 2013
1 parent e649a79 commit ab4fb7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions css/extensions/ColumnHider.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
.dgrid-hider-toggle {
font-weight:normal;
background-position: 0 -192px;
cursor: pointer;
}
.dgrid-hider-toggle:hover {
font-weight: bold;
}
html.has-quirks .dgrid-header-scroll .dgrid-hider-toggle,
html.has-ie-6 .dgrid-header-scroll .dgrid-hider-toggle {
font-size: 12px; /* override zeroed font-size for IE6/Quirks in dgrid.css */
position: absolute;
right: 0;
top: 0;
}

.dgrid-hider-menu {
Expand Down
2 changes: 1 addition & 1 deletion extensions/ColumnHider.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function(declare, has, listen, miscUtil, put){
// Assume that if this plugin is used, then columns are hidable.
// Create the toggle node.
hiderToggleNode = this.hiderToggleNode =
put(this.headerScrollNode, "div.dgrid-hider-toggle.dgrid-cell-padding", "+");
put(this.headerScrollNode, "div.ui-icon.dgrid-hider-toggle");

this._listeners.push(listen(hiderToggleNode, "click", function(e){
grid._toggleColumnHiderMenu(e);
Expand Down

0 comments on commit ab4fb7c

Please sign in to comment.