Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gridmenu): should be using grid UID for menu independence #305

Merged
merged 1 commit into from
Dec 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controls/slick.gridmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* iconCssClass: "fa fa-bars", // you can provide iconImage OR iconCssClass
* leaveOpen: false, // do we want to leave the Grid Menu open after a command execution? (false by default)
* menuWidth: 18, // width that will be use to resize the column header container (18 by default)
* resizeOnShowHeaderRow: true, // true by default
* resizeOnShowHeaderRow: false, // false by default
*
* // the last 2 checkboxes titles
* hideForceFitButton: false, // show/hide checkbox near the end "Force Fit Columns"
Expand Down Expand Up @@ -123,7 +123,7 @@
// if header row is enabled, we need to resize it's width also
var enableResizeHeaderRow = (_options.gridMenu && _options.gridMenu.resizeOnShowHeaderRow != undefined) ? _options.gridMenu.resizeOnShowHeaderRow : _defaults.resizeOnShowHeaderRow;
if(enableResizeHeaderRow && _options.showHeaderRow) {
var $headerrow = $('.slick-headerrow');
var $headerrow = $('.' + _gridUid + '.slick-headerrow');
$headerrow.attr('style', 'width: calc(100% - ' + gridMenuWidth +'px)');
}

Expand Down