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

Task #15892: Trigger list resize manually on store data change.

parent 2ec91651
......@@ -113,6 +113,9 @@ Ext.define('ARSnova.view.speaker.AudienceQuestionPanel', {
* add them to the height of the list DataView.
*/
painted: function (list, eOpts) {
this.questionList.fireEvent("resizeList", list);
},
resizeList: function (list) {
var listItemsDom = list.select(".x-list .x-inner .x-inner").elements[0];
this.questionList.setHeight(
......@@ -124,6 +127,10 @@ Ext.define('ARSnova.view.speaker.AudienceQuestionPanel', {
}
});
this.questionList.updateList = function () {
this.fireEvent("resizeList", this.element);
};
this.questionListContainer = Ext.create('Ext.form.FieldSet', {
title: Messages.QUESTION_MANAGEMENT,
hidden: true,
......@@ -325,6 +332,7 @@ Ext.define('ARSnova.view.speaker.AudienceQuestionPanel', {
this.showcaseActionButton.show();
this.questionListContainer.show();
this.questionList.updateList();
this.questionList.show();
this.questionStatusButton.checkInitialStatus();
this.questionStatusButton.show();
......@@ -334,6 +342,7 @@ Ext.define('ARSnova.view.speaker.AudienceQuestionPanel', {
empty: Ext.bind(function () {
this.showcaseActionButton.hide();
this.questionListContainer.hide();
this.questionList.updateList();
this.questionList.show();
this.caption.hide();
this.questionStatusButton.hide();
......
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