function setNoScroll() { $hasNoScroll = $this->viewControls->hasNoScrollControls(); if (!$hasNoScroll) { for ($i = 0; $i < count($this->pSet->_detailsTableData); $i++) { if ($this->pSet->_detailsTableData[$i]['previewOnList'] == 1) { $detailVCC = new ViewControlsContainer(new ProjectSettings($this->pSet->_detailsTableData[$i]['dDataSourceTable'], PAGE_LIST), PAGE_LIST); if ($detailVCC->hasNoScrollControls()) { $hasNoScroll = true; break; } } } } if ($hasNoScroll) { $this->jsSettings['tableSettings'][$this->tName]['noScroll'] = true; } }