Modified stickyHeaderWidget for better performance

Don't call the checkSizes function anymore on disabling the sticky Header via addHeaderResizeEvent(table, true);

It was an unneccesary performance loss as the gained data wasn't used afterwards.
This commit is contained in:
Drumsticks1 2016-02-24 21:27:08 +01:00
parent 9807a4f907
commit ec1a2a7cf3

View File

@ -43,12 +43,12 @@
} }
wo.resize_flag = false; wo.resize_flag = false;
}; };
checkSizes( false );
clearInterval(wo.resize_timer); clearInterval(wo.resize_timer);
if (disable) { if (disable) {
wo.resize_flag = false; wo.resize_flag = false;
return false; return false;
} }
checkSizes( false );
wo.resize_timer = setInterval(function() { wo.resize_timer = setInterval(function() {
if (wo.resize_flag) { return; } if (wo.resize_flag) { return; }
checkSizes(); checkSizes();