Ignore:
Timestamp:
07/30/12 01:19:12 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Made QuestionEditorPreview? a ContentPane? that scales with the layout
correctly, no preset height in CSS needed anymore.
ISSUE: scrolling also starts a DnD event, Dojo bug?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/QuestionEditorPreview.js

    r387 r388  
    44    'dojo/dnd/Source',
    55    'dojo/dom-construct',
    6     'dijit/_Container',
    7     'dijit/_TemplatedMixin',
    8     'dijit/_WidgetBase',
    9     'dijit/_WidgetsInTemplateMixin',
     6    'dijit/layout/ContentPane',
    107    'rft/ui/QuestionEditorPreviewItem',
    118    'dojo/text!./templates/QuestionEditorPreview.html'
    12     ], function(declare, lang, Source, domConstruct, _Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, QuestionEditorPreviewItem, template) {
    13         return declare("rft.ui.QuestionEditorPreview", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, _Container], {
     9    ], function(declare, lang, Source, domConstruct, ContentPane, QuestionEditorPreviewItem, template) {
     10        return declare("rft.ui.QuestionEditorPreview", [ContentPane], {
    1411
    1512            templateString: template,
     13            'class': 'surveyEditorPreview',
    1614            dndSource: null,
    1715
    18             postCreate: function(){
     16            startup: function(){
    1917                this.inherited(arguments);
    20                 this.dndSource = new Source(this.dndSourceNode, {
     18                this.dndSource = new Source(this.domNode, {
    2119                    accept: ["questionContent"],
    2220                    skipForm: true,
Note: See TracChangeset for help on using the changeset viewer.