Skip to content

Commit 713e6bc

Browse files
ENGCOM-5321: Fixed 23230 : Sticky header floating under top when there is no buttons in the toolbar #23247
- Merge Pull Request #23247 from konarshankar07/magento2:2.3-develop - Merged commits: 1. ce56c70 2. f5a93b7 3. a3fa8d1
2 parents ef49ac6 + a3fa8d1 commit 713e6bc

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)