Opened 12 years ago

Closed 12 years ago

#4568 closed defect (fixed)

Error in comments for dijit.layout.ContentPane

Reported by: guest Owned by:
Priority: high Milestone: 1.0
Component: Dijit Version: 0.9
Keywords: dijit, layout Cc:
Blocked By: Blocking:

Description

In the comments for the dijit.layout.ContentPane? widget, there are 4 typos that may confuse users if/when attempting to use the example code.

The current code is as follows (note the lack of dijit.layout.)...

<div dojoType="LayoutContainer" style="width: 100%; height: 100%">
	<div dojoType="ContentPane" layoutAlign="top">header text</div>
	<div dojoType="ContentPane" layoutAlign="left" style="width: 200px;">table of contents</div>
	<div dojoType="ContentPane" layoutAlign="client">client area</div>
</div>

It should be...

<div dojoType="dijit.layout.LayoutContainer" style="width: 100%; height: 100%">
	<div dojoType="dijit.layout.ContentPane" layoutAlign="top">header text</div>
	<div dojoType="dijit.layout.ContentPane" layoutAlign="left" style="width: 200px;">table of contents</div>
	<div dojoType="dijit.layout.ContentPane" layoutAlign="client">client area</div>
</div>

Regards,

isNaN (jgarfield@…)

Change History (3)

comment:1 in reply to:  description Changed 12 years ago by guest

My mistake, it's in LayoutContainer?.js - Line 31.

Replying to guest:

In the comments for the dijit.layout.ContentPane? widget, there are 4 typos that may confuse users if/when attempting to use the example code.

The current code is as follows (note the lack of dijit.layout.)...

<div dojoType="LayoutContainer" style="width: 100%; height: 100%">
	<div dojoType="ContentPane" layoutAlign="top">header text</div>
	<div dojoType="ContentPane" layoutAlign="left" style="width: 200px;">table of contents</div>
	<div dojoType="ContentPane" layoutAlign="client">client area</div>
</div>

It should be...

<div dojoType="dijit.layout.LayoutContainer" style="width: 100%; height: 100%">
	<div dojoType="dijit.layout.ContentPane" layoutAlign="top">header text</div>
	<div dojoType="dijit.layout.ContentPane" layoutAlign="left" style="width: 200px;">table of contents</div>
	<div dojoType="dijit.layout.ContentPane" layoutAlign="client">client area</div>
</div>

Regards,

isNaN (jgarfield@…)

comment:2 Changed 12 years ago by Adam Peller

Keywords: ContentPane removed
Milestone: 1.0

comment:3 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [10635]) fix examples in comments. Fixes #4568

Note: See TracTickets for help on using tickets.