Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1697 closed defect (fixed)

SplitContainer and creating bug

Reported by: joose@… Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4
Keywords: SplitContainer and display block bug. Cc: joose@…
Blocked By: Blocking:

Description (last modified by bill)

These doesn't work:

DojoML: <span dojoType="SplitContainer"> ..</span>
Code: dojo.widget.createWidget("SplitContainer", options);

These do work:

DojoML: <div dojoType="SplitContainer"> ..</div>
Code: dojo.widget.createWidget("SplitContainer", options,document.createElement("div"));
DojoML: <span style="display: block;" dojoType="SplitContainer"> ..</span>
Code: var foo=dojo.widget.createWidget("SplitContainer", options); foo.domNode.style.display="block";

So, I suggest that adding eather template to SplitContainer? to use DIV, or make style.display="block"; default behavior.

Note: This bug might exist in other Containers/widgets too.

Attachments (2)

1697.patch (3.7 KB) - added by Douglas Hays 13 years ago.
added display:block to css and added InlineBlock? widget (marked experimenta)
1697.2.patch (3.8 KB) - added by Douglas Hays 13 years ago.
InlineBlock? reworked as a container

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by bill

Description: modified (diff)

Changed 13 years ago by Douglas Hays

Attachment: 1697.patch added

added display:block to css and added InlineBlock? widget (marked experimenta)

comment:2 Changed 13 years ago by Douglas Hays

Cc: joose@… added

Please verify the css change works for you. Feel free to experiment with the InlineBlock? widget to see if it works, if inline containers are needed.

Changed 13 years ago by Douglas Hays

Attachment: 1697.2.patch added

InlineBlock? reworked as a container

comment:3 Changed 13 years ago by bill

Resolution: fixed
Status: newclosed

(In [6545]) Fixes #1697

comment:4 Changed 12 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.