Unverified Commit bc3e313f authored by lauriii's avatar lauriii

Issue #3145930 by bnjmnm, msuthars, nod_: Tableheader should recalculate on toolbar tray toggle

(cherry picked from commit ca0af473)
parent e6beb022
...@@ -139,12 +139,12 @@ ...@@ -139,12 +139,12 @@
// Bind to custom Drupal events. // Bind to custom Drupal events.
$(document).on({ $(document).on({
/** /**
* Recalculate columns width when window is resized and when show/hide * Recalculate columns width when window is resized, when show/hide weight
* weight is triggered. * is triggered, or when toolbar tray is toggled.
* *
* @ignore * @ignore
*/ */
'columnschange.TableHeader': tableHeaderResizeHandler, 'columnschange.TableHeader drupalToolbarTrayChange': tableHeaderResizeHandler,
/** /**
* Recalculate TableHeader.topOffset when viewport is resized. * Recalculate TableHeader.topOffset when viewport is resized.
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
'scroll.TableHeader': tableHeaderOnScrollHandler 'scroll.TableHeader': tableHeaderOnScrollHandler
}); });
$(document).on({ $(document).on({
'columnschange.TableHeader': tableHeaderResizeHandler, 'columnschange.TableHeader drupalToolbarTrayChange': tableHeaderResizeHandler,
'drupalViewportOffsetChange.TableHeader': tableHeaderOffsetChangeHandler 'drupalViewportOffsetChange.TableHeader': tableHeaderOffsetChangeHandler
}); });
$.extend(TableHeader, { $.extend(TableHeader, {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment