File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
app/design/adminhtml/Magento/backend/Magento_Ui/web/css/source/module
dev/tests/functional/tests/app/Magento/Ui/Test/Block/Adminhtml Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,7 @@ body._in-resize {
392
392
overflow : hidden ;
393
393
padding : 0 ;
394
394
vertical-align : top ;
395
+ vertical-align : middle ;
395
396
width : @control-checkbox-radio__size + @data-grid-checkbox-cell-inner__padding-horizontal * 2 ;
396
397
397
398
& :hover {
@@ -1075,8 +1076,9 @@ body._in-resize {
1075
1076
1076
1077
.data-grid-checkbox-cell-inner {
1077
1078
display : unset ;
1078
- margin : @data-grid-checkbox-cell-inner__padding-top @data-grid-checkbox-cell-inner__padding-horizontal .9 rem ;
1079
+ margin : 0 @data-grid-checkbox-cell-inner__padding-horizontal 0 ;
1079
1080
padding : 0 ;
1081
+ text-align : center ;
1080
1082
}
1081
1083
1082
1084
// Content Hierarchy specific
Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ class DataGrid extends Grid
162
162
*/
163
163
protected $ currentPage = ".//*[@data-ui-id='current-page-input'][not(ancestor::*[@class='sticky-header'])] " ;
164
164
165
+ /**
166
+ * Top page element to implement a scrolling in case of grid element not visible.
167
+ */
168
+ private $ topElementToScroll = 'header.page-header ' ;
169
+
165
170
/**
166
171
* Clear all applied Filters.
167
172
*
@@ -368,6 +373,10 @@ public function selectItems(array $items, $isSortable = true)
368
373
$ this ->sortGridByField ('ID ' );
369
374
}
370
375
foreach ($ items as $ item ) {
376
+ //Scroll to the top of the page in case current page input is not visible.
377
+ if (!$ this ->_rootElement ->find ($ this ->currentPage , Locator::SELECTOR_XPATH )->isVisible ()) {
378
+ $ this ->browser ->find ($ this ->topElementToScroll )->hover ();
379
+ }
371
380
$ this ->_rootElement ->find ($ this ->currentPage , Locator::SELECTOR_XPATH )->setValue ('' );
372
381
$ this ->waitLoader ();
373
382
$ selectItem = $ this ->getRow ($ item )->find ($ this ->selectItem );
You can’t perform that action at this time.
0 commit comments