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 @@
// Bind to custom Drupal events.
$(document).on({
/**
* Recalculate columns width when window is resized and when show/hide
* weight is triggered.
* Recalculate columns width when window is resized, when show/hide weight
* is triggered, or when toolbar tray is toggled.
*
* @ignore
*/
'columnschange.TableHeader': tableHeaderResizeHandler,
'columnschange.TableHeader drupalToolbarTrayChange': tableHeaderResizeHandler,
/**
* Recalculate TableHeader.topOffset when viewport is resized.
......
......@@ -78,7 +78,7 @@
'scroll.TableHeader': tableHeaderOnScrollHandler
});
$(document).on({
'columnschange.TableHeader': tableHeaderResizeHandler,
'columnschange.TableHeader drupalToolbarTrayChange': tableHeaderResizeHandler,
'drupalViewportOffsetChange.TableHeader': tableHeaderOffsetChangeHandler
});
$.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