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 249 forks source link

Buddypress theme problem #80

Open alfrenardi opened 11 years ago

alfrenardi commented 11 years ago

Hello,

I found out that every time I open the crayon window to post code in a topic, CSS gets altered. For example when I took these images the margin-left property in body had been changed to 225px. I haven't understood why it happens yet, I fixed the problem with a little trick. Anyways, I'd like to make you know about this issue.

I'm using crayon-syntax-highlighter 2.1.4 with BuddyPress 1.7-beta1 and bbPress 2.2.4 on Wordpress 3.5.1 on local host. The theme is a child theme from BuddyPress default theme.

Thank you for your work, I have tried other plugins too but Crayon is the best available. Thank you very much!

before after

aramk commented 11 years ago

Hmm... that is odd. It could be a conflict with some of Crayon's stylesheets.

aramk commented 11 years ago

Could you share the URL you're accessing? I'm having a hard time trying to find the page in your screenshot.

alfrenardi commented 11 years ago

Yes of course, the page is the forum of a group (called "gruppo-di-prova") where is possible to make new topic. The URL was http://127.0.0.1/groups/gruppo-di-prova-473285652/forum/ I tried also with default buddypress theme and I have the same problem. Nothing bad happens on admin part.

I made another try with a fresh installation and buddypress beta2, but it is the same.

Anyways, when it happens I found that the altered property is "margin-right" that is changed to 0px, not margin-left as I wrote.

aramk commented 11 years ago

I believe this issue is related to the actual theme you're using, not any functionality of Crayon or bbPress. Is it available for me to test? It's most likely a CSS conflict.

alfrenardi commented 11 years ago

It is still closed, we have other issues to solve before getting online. Maybe I can open it only for you, but I need your IP I think.

Anyways, I found that the problem happens only with firefox. I tried with ubuntu and windows xp too, but the issue comes out only with firefox. No problem with chromium or other browsers. That's my fault I didin't tried before.

I'm using buddypress 1.7 beta 2 default theme, with last stable crayon and bbpress, without other plugin or theme.

aramk commented 11 years ago

Take a look at the chrome inspector or firebug and it'll show you what CSS rule is causing it I suspect.

alfrenardi commented 11 years ago

Thank you for the help. I'have just done some tries, I'll try again later. That's it what firebug says error

aramk commented 11 years ago

That's interesting... Seems there's a script error. I'll need to look into that.

On 27/03/2013, at 1:31 AM, alfrenardi notifications@github.com wrote:

Thank you for the help. I'have just done some tries, I'll try again later. That's it what firebug says

— Reply to this email directly or view it on GitHub.