Opened 13 years ago

Closed 12 years ago

Last modified 9 years ago

#1434 closed defect (wontfix)

[missing cla?] ResizableTextarea does not display correctly when created programmatically inside a div with a margin

Reported by: sjs@… Owned by: bill
Priority: high Milestone: 0.9
Component: Dijit - Form Version: 0.3
Keywords: Cc: sjs@…
Blocked By: Blocking:

Description

ResizableTextarea does not display correctly when created programmatically inside a div with a margin.

Will make an attachment with testcase.

Noogen gave solution on #dojo:

<Noogen> i figure out what's wrong with your ResizableTextArea
<Noogen> it's dojo
<Noogen> line 38: ResizableTextarea.js should be dojo.dom.insertBefore(this.domNode, this.getFragNodeRef(frag));
<Noogen> instead of: dojo.body().appendChild(this.domNode);
<Noogen> when it appendChild to dojo.body() it calculates using body width and not div width (which is -50px for margin left)

-Stephen

Attachments (1)

foo.html (2.1 KB) - added by guest 13 years ago.
test case

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by guest

Attachment: foo.html added

test case

comment:1 Changed 13 years ago by dylan

Milestone: 0.5
Owner: changed from bill to psowden

Unfortunately, the proposed solution crashes safari, so this won't be a simple fix.

comment:2 Changed 13 years ago by Adam Peller

Component: WidgetsDijit
Owner: changed from psowden to bill
Summary: ResizableTextarea does not display correctly when created programmatically inside a div with a margin[missing cla?] ResizableTextarea does not display correctly when created programmatically inside a div with a margin

comment:3 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

ResizableTextArea? has been abandoned in favor of an auto-sizing Textarea, so hopefully this isn't an issue anymore. Please open a new bug if there's a problem w/the new TextArea? widget.

comment:4 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.