/** * Adjustment, if the offset is too large right. * * @return NavigateRange */ protected function adjustmentLargeRightOffset() { if ($this->config->getCurrentPage() + $this->right_offset > $this->config->getTotalPages()) { $offset = (int) abs($this->config->getTotalPages() - $this->config->getCurrentPage() - $this->right_offset); $this->left_offset = $this->left_offset + $offset; $this->right_offset = $this->right_offset - $offset; } return $this; }