icecoder/ICEcoder

Switch tab issues

Closed this issue · 4 comments

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?

Due to cached files in Chrome, actually works just fine. Closed.

Same problem is back again. Seems to work fine one day and then back to it's old tricks the next. Needs further investigation.

Latest update (v0.5.6) now has different CSS styling for visible and hidden states, which covers tab switching and editor style moving in a much better way. This may have solved the issue of a blank editor window which some GPUs render. Even if not, it's faster, but fingers crossed this will solve the blank editor too.

Yes, this fixes the problem. It's now much much faster to switch between tabs and has worked perfectly everytime for 4 days running (used extensively for 5 hours+). So, fixed and closed!! :)