Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
Tim Häuser
ARSnova Mobile
Commits
a3430eb9
Commit
a3430eb9
authored
May 18, 2015
by
Andreas Gärtner
Browse files
Task #15892: Trigger list resize manually on store data change.
parent
2ec91651
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/app/view/speaker/AudienceQuestionPanel.js
View file @
a3430eb9
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment