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/pages/question.js

    r387 r388  
    44    'dojo/_base/lang',
    55    'dojo/behavior',
    6     'dijit/form/FilteringSelect',
    76    'rft/store',
    87    'rft/content',
     
    109    'rft/ui/QuestionEditorPreview',
    1110    'rft/ui/QuestionEditorToolkit'
    12     ],function(declare, Deferred, lang, behavior, FilteringSelect, store, content, _Page, QuestionEditorPreview, QuestionEditorToolkit){
     11    ],function(declare, Deferred, lang, behavior, store, content, _Page, QuestionEditorPreview, QuestionEditorToolkit){
    1312        return declare('rft.pages.question', [_Page], {
    1413            question: null,
     
    6766            },
    6867            _setupEditor: function() {
    69                 this._toolkit = new QuestionEditorToolkit();
    70                 this._toolkit.placeAt("QuestionEditorToolkit");
     68                this._toolkit = new QuestionEditorToolkit({
     69                },this.QuestionEditorToolkitNode);
    7170                this._toolkit.startup();
    7271
    73                 this._preview = new QuestionEditorPreview();
    74                 this._preview.placeAt("QuestionEditorPreview");
     72                this._preview = new QuestionEditorPreview({
     73                    region: 'center'
     74                },this.QuestionEditorPreviewNode);
    7575                this._preview.startup();
    7676                this._supportingWidgets.push(this._toolkit, this._preview);
Note: See TracChangeset for help on using the changeset viewer.