aramk / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/crayon-syntax-highlighter/
GNU General Public License v3.0
1.1k stars 248 forks source link

Max-width not working in div with table-cell. #116

Open RuBAN-GT opened 11 years ago

RuBAN-GT commented 11 years ago

Good day! In WordPress, I created a topic in which content is in a div with the property table-cell. It does not want to block a maximum width, it is displayed on the length of its code (if wrapping is turned off). When set to display: block everything becomes normal. It is possible to fix it In the code block is no property max-width.

RuBAN-GT commented 11 years ago

In crayon.min.js something removes max-width from .crayon-syntax.

RuBAN-GT commented 11 years ago

The problem was solved by adding table-layout: fixed.

aramk commented 11 years ago

Ah good to know, should this change be applied to the code or was it specific to your case only?