Commit 7f8150cf authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Task #15893: Fix wrong hidden state of flashcard answer panel.

parent 07a9d52f
...@@ -699,10 +699,12 @@ Ext.define('ARSnova.view.Question', { ...@@ -699,10 +699,12 @@ Ext.define('ARSnova.view.Question', {
if (!me.resizeListFlag && this.questionObj.questionType !== 'grid') { if (!me.resizeListFlag && this.questionObj.questionType !== 'grid') {
me.resizeListFlag = true; me.resizeListFlag = true;
Ext.create('Ext.util.DelayedTask', function () { Ext.create('Ext.util.DelayedTask', function () {
me.answerList.element.dom.style.display = 'none'; if (me.answerList.element.dom.style.display !== 'none') {
me.answerList.fireEvent('resizeList', me.answerList.element); me.answerList.element.dom.style.display = 'none';
me.answerList.element.dom.style.display = ''; me.answerList.fireEvent('resizeList', me.answerList.element);
me.resizeListFlag = false; me.answerList.element.dom.style.display = '';
me.resizeListFlag = false;
}
}).delay(2000); }).delay(2000);
} }
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment