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

Cannot select words within first sentence of API docs #5093

Closed
drnextgis opened this issue Mar 22, 2016 · 6 comments
Closed

Cannot select words within first sentence of API docs #5093

drnextgis opened this issue Mar 22, 2016 · 6 comments

Comments

@drnextgis
Copy link
Contributor

Open for example this page and try to select any word in first sentence:

A source that transforms data from any number of input sources using an array of ...

This problem caused by CSS style from jaguar.css:

.nameContainer .name, .prettyprint.source .pln {
  padding-top: 50px;
  margin-top: -50px;
}

What is the goal of this style?

@ahocevar
Copy link
Member

What is the goal of this style?

It helps to position anchors correctly. Without it, e.g. http://openlayers.org/en/v3.14.2/apidoc/ol.source.TileUTFGrid.html#getTemplate would hide the first 50 px of the getTemplate documentation.

@ahocevar
Copy link
Member

BTW, in which browser were you experiencing this problem? I tried Safari, Chrome and Firefox, and I can select from that sentence in all of them.

@drnextgis
Copy link
Contributor Author

Both Chrome and Firefox (Linux).

@simgislab
Copy link

same here, can't select anything on the first line, Firefox 45 (Ubuntu 14.04)

@ahocevar
Copy link
Member

Looks like OSX, Windows and Linux all have different behaviour. It works fine in OSX, and in Windows the selection is 50px off.

@probins
Copy link
Contributor

probins commented Apr 4, 2016

With Chrome OS, I see a different problem. On the page given, I can select from descriptions that wrap to a second line or which have other following text, but not from changed or refresh which are one-liners (though I can select this by selecting on the line above and scrolling to include the description).

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