Skip to content

Commit

Permalink
ENGCOM-3870: Backend: User Role Checkbox alignement. #20237
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Feb 18, 2019
2 parents 3f8dee5 + ac4acd9 commit 35911a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ body._in-resize {
overflow: hidden;
padding: 0;
vertical-align: top;
vertical-align: middle;
width: @control-checkbox-radio__size + @data-grid-checkbox-cell-inner__padding-horizontal * 2;

&:hover {
Expand Down Expand Up @@ -1075,8 +1076,9 @@ body._in-resize {

.data-grid-checkbox-cell-inner {
display: unset;
margin: @data-grid-checkbox-cell-inner__padding-top @data-grid-checkbox-cell-inner__padding-horizontal .9rem;
margin: 0 @data-grid-checkbox-cell-inner__padding-horizontal 0;
padding: 0;
text-align: center;
}

// Content Hierarchy specific
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ class DataGrid extends Grid
*/
protected $currentPage = ".//*[@data-ui-id='current-page-input'][not(ancestor::*[@class='sticky-header'])]";

/**
* Top page element to implement a scrolling in case of grid element not visible.
*/
private $topElementToScroll = 'header.page-header';

/**
* Clear all applied Filters.
*
Expand Down Expand Up @@ -368,6 +373,10 @@ public function selectItems(array $items, $isSortable = true)
$this->sortGridByField('ID');
}
foreach ($items as $item) {
//Scroll to the top of the page in case current page input is not visible.
if (!$this->_rootElement->find($this->currentPage, Locator::SELECTOR_XPATH)->isVisible()) {
$this->browser->find($this->topElementToScroll)->hover();
}
$this->_rootElement->find($this->currentPage, Locator::SELECTOR_XPATH)->setValue('');
$this->waitLoader();
$selectItem = $this->getRow($item)->find($this->selectItem);
Expand Down

0 comments on commit 35911a3

Please sign in to comment.