The editor window flickers

The editor window flickers

by Audun Hauge -
Number of replies: 14
In edit mode the edit window seems to be drawn slightly above where it should be. It flicks down to the correct place. For every key press you get this flicker (firefox 0.9 and 1.0).
It seems as if the editor window is redrawn for each key-press....
Average of ratings: -
In reply to Audun Hauge

Re: The editor window flickers

by Janne Mikkonen -
Yes this is know annoyance (major fricking bug). I'm having this exact same thing on a module that I'm currently working on. And it's killing me.
The down side is that I've been looking and testing for days And I can't find what exactly is causing it.

I know this much: event handling for onkeypress, onchange, onmousedown +++ "leaks" out. Why? I can't say.
In reply to Janne Mikkonen

Re: The editor window flickers

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I had a quick look (taking things out of the page) but no luck ... very weird!!
In reply to Martin Dougiamas

Re: The editor window flickers

by Ralf Hilgenstock -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Translators
The interesting thing is:
  • it is only in wikis
  • It is only in the standard window
  • it ist not in the big window
In reply to Martin Dougiamas

Re: The editor window flickers

by Janne Mikkonen -
I've removed all the other javascript code (no luck!!!).
(next remove everything (html code and javascript) and add it back bit by bit (and by walking you'd be there already big grin))
In reply to Audun Hauge

Re: The editor window flickers

by Samuli Karevaara -
Just reporting that this happens (in Firefox) both on Windows and Linux/Unix.

Edit: A silly workaround which is not really a workaround is to use the "No HTML" mode of the wiki, no flicker there smile
In reply to Audun Hauge

Re: The editor window flickers (a fix here :-)

by Samuli Karevaara -

Don't ask me why, but removing align="right" (no need to remove the whole table, just the align="right" setting) from one inner wiki edit table cures this flickering. It's a table with a class="generalbox", there is a couple of these but it's the only one I saw with align="right". Might/must be also a Firefox issue, but try this "sunspots and a blue moon" fix.

I didn't notice anything breaking, but I don't know the original purpose of the align="right".

Average of ratings: Useful (1)
In reply to Samuli Karevaara

Re: The editor window flickers (a fix here :-)

by Herbert Keijers -
Samuli,
can you please tell in which file you made this modification so I can test it myself ?
In reply to Herbert Keijers

Re: The editor window flickers (a fix here :-)

by Samuli Karevaara -
Herbert, Martin fixed this to the CVS (as he said smile ), but if you want to fix it then change from mod/wiki/view.php the line 350 (or so)
print_simple_box_start( 'right', '100%', '', '20');
to
print_simple_box_start('center', '100%', '', '20');
In reply to Samuli Karevaara

Re: The editor window flickers (a fix here :-)

by Herbert Keijers -
Yes, already found it in CVS. Flickers in Firefox are history !!!!

Thanks very much !!!
In reply to Samuli Karevaara

Re: The editor window flickers (a fix here :-)

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
You da Man!!

That's been bugging us for far too long.

mike
Average of ratings: Useful (1)