Opened 9 years ago

Last modified 3 years ago

#12599 assigned defect

dijit.Editor resize/layout bug — at Initial Version

Reported by: patrickzope Owned by:
Priority: high Milestone: 1.14
Component: DojoX Layout Version: 1.6.0
Keywords: Cc:
Blocked By: Blocking:

Description

When a dijit.Editor is placed in a dojox.layout.TableContainer?, an exception is raised, because the editor's layout method expects a "_contentBox" attribute to be set on the instance, but in this case it is not (see attached test case).

The Editor seems to assume that the layout widget will call its resize method and pass in an argument; the TableContainer? calls resize without passing in any arguments.

We've worked around this in our code with the following:

editor.resize = function () {
    dijit.layout._LayoutWidget.prototype.resize.apply(
        editor, arguments);
};

Change History (1)

Changed 9 years ago by patrickzope

Attachment: dijiteditorbug.html added

test case that demonstrates the bug

Note: See TracTickets for help on using tickets.