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

List in /tests page not scrollable #49

Open
danfinlay opened this issue Apr 22, 2015 · 14 comments
Open

List in /tests page not scrollable #49

danfinlay opened this issue Apr 22, 2015 · 14 comments

Comments

@danfinlay
Copy link

If I call ember serve and navigate to my /tests route and click show coverage, the coverage tests are shown in an element, but if the list is long, it will spill out of view, and is not scrollable.

@danfinlay
Copy link
Author

I've searched the entire project for .css files, to see where this style would be defined, but only found the tests/dummy/app/styles/app.css file. Any tips where the #blanket-main styles are declared?

@chrisvdp
Copy link

sounds like it didn't install properly. They should be added inline to tests/index.html

@chrisvdp
Copy link

<style>#blanket-main { position: relative; z-index: 99999; }</style>

@jschilli
Copy link
Collaborator

Dan, it's in your tests.html. Or should be. Inserted by index.js

Sounds like you did an npm install whereas the blanket file install and css touchup happen in after install

Not at the computer right now. But I can take a look at this and see what alternatives we have

-jeff

On Apr 22, 2015, at 5:07 PM, Dan Finlay [email protected] wrote:

I've searched the entire project for .css files, to see where this style would be defined, but only found the tests/dummy/app/styles/app.css file. Any tips where the #blanket-main styles are declared?


Reply to this email directly or view it on GitHub.

@danfinlay
Copy link
Author

Sounds like you did an npm install

I actually did the ember install:addon ember-cli-blanket right off the README.

sounds like it didn't install properly. They should be added inline to tests/index.html

They are added, their div element just isn't scrollable.

I got it doing what I wanted by adding this CSS to my project:

#blanket-main{ overflow-y: scroll; }

But sounds like this was an install error? Leaving this open so we can explore what went wrong.

@danfinlay
Copy link
Author

Oh yes, #blanket-main { position: relative; z-index: 99999; } was inserted into my tests/index.html file, but it still wasn't scrollable until I added overflow-y:scroll.

@chrisvdp
Copy link

what browser?

@danfinlay
Copy link
Author

Chrome Version 42.0.2311.90 (64-bit)

On Apr 22, 2015, at 2:24 PM, Christopher van der Ploeg [email protected] wrote:

what browser?


Reply to this email directly or view it on GitHub #49 (comment).

@chrisvdp
Copy link

Running the same and don't have any issues. I am using mocha though.

@danfinlay
Copy link
Author

This may be because I'm running a css-reset, and ember-cli-blanket is assuming some default style behavior.

This would present a decent question to consider: Should this addon expect a certain style context, or should it provide the styles that it relies on?

@edmundito
Copy link

@FlySwatter correct, it seems that the CSS in your app may be interfering with the css for the test runner. I had to add this to tests/index.html

body { overflow-y: scroll; }

...because we were doing a similar reset in our app. Your suggestion helped us fix it.

@danfinlay
Copy link
Author

It's interesting that the app's reset can extend outside itself, but I guess a reset indiscriminately applies to html, body, so why shouldn't it?

@jschilli
Copy link
Collaborator

jschilli commented Apr 1, 2016

@FlySwatter recommendation here? or close?

@danfinlay
Copy link
Author

If it doesn't break others' formats if say add the Css that we did, but you would want to test it on some other projects first.

Otherwise a note in the readme I guess would do.

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

4 participants