pycco-docs / pycco

Literate-style documentation generator.
https://pycco-docs.github.io/pycco/
Other
845 stars 143 forks source link

Fix background not staying behind the code when scrolling horizontally #55

Closed x3ro closed 12 years ago

x3ro commented 12 years ago

This commit fixes a bug introduced in e2032e19b05 which changed the previous table layout to a pure CSS-based layout. Because the new layout used a "position: fixed" background, the background would not scroll when code lines were more wide than the browser window. This has been fixed by making the background "position: absolute" and moving it into the container DIV. Because the container DIV does not expand if its content is wider than the browser window though, I had to set the body background color to the same color than the code background and the container background to white, so that the left (comment) part stays white.

Screenshot before the fix: Before fix

Screenshot after the fix: After fix

treyhunner commented 12 years ago

Awesome, thanks!