Changeset 440 for Dev


Ignore:
Timestamp:
04/24/13 21:31:16 (12 years ago)
Author:
hendrikvanantwerpen
Message:

End fold open with height auto, so widgets that change size are handled correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/client/qed/model/widgets/QuestionEditorPreviewItem.js

    r439 r440  
    1010    "dojo/dom-class",
    1111    "dojo/dom-geometry",
     12    "dojo/dom-style",
    1213    "dojo/on",
    1314    "dojo/text!./templates/QuestionEditorPreviewItem.html"
    14 ], function(QuestionWidgetFactory, _Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, declare, fx, lang, domClass, domGeom, on, template) {
     15], function(QuestionWidgetFactory, _Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, declare, fx, lang, domClass, domGeom, domStyle, on, template) {
    1516    return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, _Container], {
    1617        templateString: template,
     
    105106                        duration: this.foldDuration[0],
    106107                        properties: {
    107                             height: 1                       
     108                            height: 1
    108109                        },
    109110                        onEnd: lang.hitch(this, function(){
     
    118119                        duration: this.foldDuration[1],
    119120                        properties: {
    120                             height: this.previousContentHeight               
     121                            height: this.previousContentHeight
    121122                        },
    122123                        onEnd: lang.hitch(this, function(){
    123124                            domClass.remove(this.domNode, "fold");
     125                            domStyle.set(this.innerNode, 'height', 'auto');
    124126                            this.animation = null;
    125127                        })
Note: See TracChangeset for help on using the changeset viewer.