Skip to content

Commit d0fde13

Browse files
authored
ENGCOM-5321: Fixed 23230 : Sticky header floating under top when there is no buttons in the toolbar #23247
2 parents 3f277dd + 713e6bc commit d0fde13

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Ui/view/base/web/js/grid

1 file changed

+4
-1
lines changed

app/code/Magento/Ui/view/base/web/js/grid/toolbar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ define([
271271
*/
272272
show: function () {
273273
this.visible = true;
274-
274+
//Check admin grid button has addedr not
275+
if ($('.page-main-actions').length === 0) {
276+
this.$sticky.style.top = 0;
277+
}
275278
this.$sticky.style.display = '';
276279
this.$toolbar.style.visibility = 'hidden';
277280

0 commit comments

Comments
 (0)