Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(dropdown): Fix alignment for dropdown-append-to-body with .dropdown-menu-right when there's a vertical scrollbar #5830

Conversation

dolevd
Copy link
Contributor

@dolevd dolevd commented Apr 20, 2016

Fixes #4317

This is going to be difficult to add tests for as the width of the scrollbar (that's used to calculate the alignment) is browser dependent.

Plunk with fix in place.

@wesleycho
Copy link
Contributor

This LGTM - @RobJacobs is this the right fix?

@RobJacobs
Copy link
Contributor

LGTM

@wesleycho wesleycho added this to the 1.3.3 milestone Apr 20, 2016
@wesleycho wesleycho closed this in 2b48259 Apr 20, 2016
@achenxp
Copy link

achenxp commented May 24, 2016

When there is no vertical scroll bar, the position of the dropdown is now incorrect.

@dolevd
Copy link
Contributor Author

dolevd commented May 24, 2016

Can you please provide a plunkr that shows the problem?

@achenxp
Copy link

achenxp commented May 24, 2016

Here is the Plunkr.

@dolevd
Copy link
Contributor Author

dolevd commented May 24, 2016

Thanks. My code is missing a check for overflow.
I'll send another pull request to fix this.

@achenxp
Copy link

achenxp commented May 24, 2016

Thanks for the quick action!

@dolevd
Copy link
Contributor Author

dolevd commented May 24, 2016

I have a fix in my fork: dolevd@f838eb6

However, this might create a performance issue (since we need to calculate the styles of the append to element on every watch).
Any suggestions on how to proceed?

@dolevd
Copy link
Contributor Author

dolevd commented May 30, 2016

I've opened another issue to handle this (#5942), since I don't think anyone is looking at the comments here anymore.

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

Successfully merging this pull request may close these issues.

Right alignment is off for dropdown-append-to-body .dropdown-menu-right when there's a vertical scrollbar
4 participants