Skip to content

Commit

Permalink
Fixed #3849 - TabView: Scrollable Starting/Ending Nav Arrow Blocks Fi…
Browse files Browse the repository at this point in the history
…rst/Last Tab
  • Loading branch information
tugcekucukoglu committed Apr 11, 2023
1 parent f2fc192 commit ff609bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/lib/tabview/TabView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@

<script>
import BaseComponent from 'primevue/basecomponent';
import Ripple from 'primevue/ripple';
import { DomHandler, UniqueComponentId } from 'primevue/utils';
import ChevronLeftIcon from 'primevue/icon/chevronleft';
import ChevronRightIcon from 'primevue/icon/chevronright';
import Ripple from 'primevue/ripple';
import { DomHandler, UniqueComponentId } from 'primevue/utils';
export default {
name: 'TabView',
extends: BaseComponent,
Expand Down Expand Up @@ -191,7 +191,7 @@ export default {
},
onPrevButtonClick() {
const content = this.$refs.content;
const width = DomHandler.getWidth(content) - this.getVisibleButtonWidths();
const width = DomHandler.getWidth(content);
const pos = content.scrollLeft - width;
content.scrollLeft = pos <= 0 ? 0 : pos;
Expand Down

0 comments on commit ff609bf

Please sign in to comment.