Skip to content
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

p-dropdown still causes page to horizontally scroll #11046

Closed
eduardtyutyunik opened this issue Jan 10, 2022 · 4 comments
Closed

p-dropdown still causes page to horizontally scroll #11046

eduardtyutyunik opened this issue Jan 10, 2022 · 4 comments

Comments

@eduardtyutyunik
Copy link

eduardtyutyunik commented Jan 10, 2022

Originally posted by @eduardtyutyunik in #10992 (comment)

Hi. Sorry, but it doesn't really fixed the issue. If you put the dropdown to the right half of the page. In your example:
<p-dropdown [options]="cities" [(ngModel)]="selectedCity1" placeholder="Select a City" optionLabel="name"
[showClear]="true" style="margin-left: 300px;">
then the horizontal scroll also happens. The same problem is in the paginator of tables. If the page has a horizontal scroll and the padinator of the table is on the right half of the page, the page scrolls horizontally when the paginator will be oppend.

https://stackblitz.com/edit/primeng-tablepage-demo-qcryef?file=src%2Fapp%2Fapp.component.html

@waratah
Copy link
Contributor

waratah commented Jan 11, 2022

My work around to this issue was to make it appendTo='body'. This resolved the shifting.

I also had to add paginatorDropdownAppendTo='body' to my tables so that the paginator did not show the same problems.

@eduardtyutyunik
Copy link
Author

My work around to this issue was to make it appendTo='body'. This resolved the shifting.

I also had to add paginatorDropdownAppendTo='body' to my tables so that the paginator did not show the same problems.

Thank you. It works! I think it has to be a default behaviour (at least for tables).

@yigitfindikli yigitfindikli self-assigned this Jan 12, 2022
@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jan 12, 2022
@yigitfindikli yigitfindikli added this to the 13.0.5 milestone Jan 12, 2022
@waratah
Copy link
Contributor

waratah commented Jan 13, 2022

Verified fixed on 13.0.4

@yigitfindikli yigitfindikli removed the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jan 13, 2022
@yigitfindikli yigitfindikli removed this from the 13.0.5 milestone Jan 13, 2022
@wojo2020
Copy link

I'm still seeing the issue on 13.4.1 and the scrollTo= option isn't changing the behavior. My dropdown is in the right half of the screen. Any other suggestions? Is there a stackblitz out there showing the fix for a dropdown in the right portion of the screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants