-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TabView: Scroll buttons are not displayed when adding tabPanel dynamically #13530
Comments
Hi, @RomDuvi. please edit the title of your issue for example: I have checked the stackblitz and I can see displayed the scroll buttons (arrows). Maybe I didn't understand something. If you can give more info or record a gif or something will be better. Thanks |
@SoyDiego , thanks for your answer :) In the stackblitz example, when I click the "Add button" multiple times it pushes new tabPanel to the tabView but the scroll button is never displayed. Thanks for your help, |
@mehmetcetin01140 @cetincakiroglu Hi, I have fixed the issue, can you please check the code and hopefully merge it? Thanks |
… adding tabPanel dynamically
Fixed #13530 TabView: Scroll buttons are not displayed when adding ta…
Describe the bug
When adding tabPanels to a tabView, the scroll button is not displayed in the nav container of the tabView in case of overflow.
This behavior worked in PrimeNg 16.0.0.
If the tabView is instantiated with a number of tabPanels exceeding the tabView's nav container width, scroll buttons are correctly displayed.
Environment
Primeng 16.2.0
Angular 16.2.1
Node 18.12.1
Chrome 116
Reproducer
https://stackblitz.com/edit/github-fdxap3?file=src%2Fapp%2Fapp.component.ts
Angular version
16.2.1
PrimeNG version
16.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.12.1
Browser(s)
Chrome 116
Steps to reproduce the behavior
Create a tabView and add tabPanels until the width of the tabPanel list exceeds the tabView container.
The scroll buttons are not displayed.
Expected behavior
Scroll buttons are displayed as soon as a new tabPanel is added to the tabView and the tabPanels exceed the width of the tabView container.
The text was updated successfully, but these errors were encountered: