Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

mdAutocomplete: Modifies body position #4175

Closed
PseudoCorps opened this issue Aug 15, 2015 · 4 comments
Closed

mdAutocomplete: Modifies body position #4175

PseudoCorps opened this issue Aug 15, 2015 · 4 comments
Milestone

Comments

@PseudoCorps
Copy link

I'm not sure if this is intended behavior or not, but some of the time when I type in an md-autocomplete box, the element style of the body tag is changed which makes my navbar disappear. The negative top value varies, and I'm not sure how to avoid it.

The navbar is the gray in the first picture with the teal bottom border part (I blocked out most of the content)

Before:

before

Enter in the md-autocomplete:

category

After:

after

Suggestions block and style:

suggestion-block-style

I'm guessing that the since the <body> is the parent of the <ul> containing the suggestions that it adjusts based on that. Is there a reason the suggestions have to be on the top level?

I was thinking the suggestions <ul> could be injected into the element where the <md-autocomplete> is instead of the top level. This might make it easier to format the position of the list as well?

/*!

@PseudoCorps
Copy link
Author

Seems similar to #4151

@ThomasBurleson ThomasBurleson modified the milestone: 0.12.0 Sep 2, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc1, 1.0-rc2, 1.0-rc3 Oct 27, 2015
@robertmesserle robertmesserle modified the milestones: 1.0-rc3, post-1.0 Nov 3, 2015
@ThomasBurleson ThomasBurleson modified the milestones: post-1.0 , Backlog Jan 5, 2016
@hoffination
Copy link

Similar to my comment on #6188
+1

I commented out the first applyStyles in the disableBodyScroll function and that seemed to fix this problem for me:

if (body.scrollHeight > body.clientHeight + 1) {

@baelter
Copy link

baelter commented Feb 24, 2016

+1

@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Deprecated Apr 20, 2016
@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our deprecation effort.
For details, see our post Spring Cleaning 2016.

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

No branches or pull requests

5 participants