mattpass/ICEcoder — Issue #4: Switch tab issues
Author: mattpass
Created: 2012-01-30 21:02:45+00:00
State: open

Sometimes loading a file of a reasonable size after an initial file is loaded, the editor instance wont display.

The text is loaded and hidden textarea is shown but there is no CodeMirror instance visible. This appears to be due to setting the CSS values to show/hide on demand. Doing this via display, opacity, visibility, left or top didn't work at all, but width appeared to at first and certainly with most small files.

However. It doesn't work perfectly and can cause issues.

When investigating this, I've noticed that the switchTab function is called many times. As setting of the CSS class is done within this function, its possibly due to this? Even if not, it should only be called once. It also appears as uf higher loaded instances obscure others?