SHARE
TWEET

Untitled

a guest Jul 17th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var scrollbarOffset = 15;
  2. var buffer = 5;
  3. var gridHeight = ((rowCount > 0 ? rowCount : 1) * rowHeight) + footer + header + filter + buffer;
  4. var scrollable= $.grep(element[0].attributes,
  5. function (rn) {
  6.                 return rn.nodeName === "ui-grid-pinning";
  7.               }).length > 0;
  8.  
  9. if (scrollable) {
  10.     gridHeight = gridHeight + scrollbarOffset;
  11. }
RAW Paste Data
Top