Closed zulfiqarlangah closed 13 years ago
CodeMirror can not detect when it is being shown. You have to call the refresh() method to have it update itself in such a situation.
but when i call refresh method it show only 9 rows only. (9 lines only)
Can you provide me with a minimal HTML page that demonstrates the problem?
Oh, hold on, you are using CodeMirror 2, right? That's at https://github.com/marijnh/CodeMirror2
yes codemirror 2
still same problem here
Please open an issue in the right repository, with a proper test case attached/linked.
I solved my problem with a setTimeout 20ms before calling refresh. I will reproduce in a simple example and open an issue. Cheers.
The display block was happening after the refresh call, in the right order everything works correctly. So there's no issue for me, sorry about that.
Content does not show when show hidden div. Here are steps:
This scenerio can be apply on tabs.