Skip to content

Commit

Permalink
make the choice between p.tblwidth and p.width in columnChooser more …
Browse files Browse the repository at this point in the history
…dynamic
  • Loading branch information
OlegKi committed Apr 15, 2015
1 parent 1186914 commit 6fb09c6
Show file tree
Hide file tree
Showing 4 changed files with 356 additions and 351 deletions.
4 changes: 3 additions & 1 deletion js/grid.jqueryui.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@
if (opts.done) {
opts.done.call($self, perm);
}
$self.jqGrid("setGridWidth", p.width, p.shrinkToFit);
$self.jqGrid("setGridWidth",
!p.autowidth && (p.widthOrg === undefined || p.widthOrg === "auto" || p.widthOrg === "100%") ? p.tblwidth : p.width,
p.shrinkToFit);
},
/* Function to cleanup the dialog, and select. Also calls the
done function with no permutation (to indicate that the
Expand Down

0 comments on commit 6fb09c6

Please sign in to comment.