Tom,
thank you very much, your hints solved my css-problem.
Unfortunately, a new problem emerged: I need to initiate an external js-object (an audioplayer). I thought, this should be done insite the postRender-function. But as soon as I insert the postRender-function, the "submit-" and "show feedback-" buttons are not rendered anymore. All the rest of the amcq-component (radiobuttons with answers, title etc.) seems to be still ok. I also get the "test" output in the console, if the initPlayer-function is not commented out, but not the two buttons. Is postRender not the right place to initiate objects?
My script looks like this:
define([ "coreJS/adapt", "components/adapt-contrib-mcq/js/adapt-contrib-mcq"], function(Adapt, Mcq) {
var Amcq = Mcq.extend({
events: {
'focus .amcq-item input':'onItemFocus',
'blur .amcq-item input':'onItemBlur',
'change .amcq-item input':'onItemSelected',
'keyup .amcq-item input':'onKeyPress'
},
postRender: function() {
this.setReadyStatus();
//this.initPlayer(); // deaktivated during testing
},
initPlayer: function() {
console.log('test');
}
}, {
template: 'amcq'
});
Adapt.register('amcq', Amcq);
return Amcq;
});
Thanks in advance,
Tom