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

Element doesn't seem to work without --layout-fullbleed and --layout-vertical. #43

Open
shicks opened this issue Jul 16, 2016 · 1 comment
Assignees

Comments

@shicks
Copy link

shicks commented Jul 16, 2016

I tried using the element in my own app but had difficulty. I bisected against the demo and found that if I don't add

:host {
  @apply(--layout-fullbleed);
  @apply(--layout-vertical);
}

to my element's CSS, the swipeable content doesn't display. But if I add both of them, then it works great. It would be great to either remove this requirement (i.e. by building it in somehow) or else document it more clearly.

@MeTaNoV MeTaNoV self-assigned this Jul 19, 2016
@n1ywb
Copy link

n1ywb commented Dec 2, 2016

this is because it sets position: absolute on the pages, which removes them from the layout by default, causing the host to have zero height (the layout considers it empty). the flex layout in this case just blows up the host element to fill the viewport at the expense of causing it to scroll internally which I think is extremely annoying and conflicts with the outer scrolling the polymer header requires to work properly. I'm trying to figure out a better way.

http://stackoverflow.com/questions/5369954/why-is-my-divs-height-zero

maybe use floating instead of abs positioning: http://stackoverflow.com/questions/13545947/position-absolute-and-parent-height

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

No branches or pull requests

3 participants