yalabot / angular-foundation

http://pineconellc.github.io/angular-foundation/
Other
1.05k stars 267 forks source link

fix(dropdownToggle): Dropdown not repositioned when window resized #261

Open lerio opened 8 years ago

lerio commented 8 years ago

Related to https://github.com/pineconellc/angular-foundation/pull/258.

When window is resized, the open dropdown is not correctly repositioned below its toggle. Now the behaviour is correct either when the dropdown is left or right aligned.

Before: screen shot 2015-09-18 at 14 37 26

After: screen shot 2015-09-18 at 14 38 00

jbrowning commented 8 years ago

Thanks for sending this in, @lerio. In addition to my previous comments can you please try to add some tests for this behavior?

lerio commented 8 years ago

Did the required changes, but I didn't add any test yet. Can you suggest me a way to test $window resize on jasmine?

danieljin commented 8 years ago

Bump