Opened 13 years ago

Closed 12 years ago

#2581 closed defect (fixed)

inlineEditBox widget fails to appear in place

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 0.9beta
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

If an inlineEditBox is created for an absolutely positioned element using the standard arguments, when the widget is clicked the edit box appears in the wrong position. It does not seem to use the original elements positioning information, which I believe it ought.

Further, it turns out that if the widget is created with the "first" element, that when clicked, it will appear in the right place, but the original text will appear twice.

I am looking to be able to create a inlineEditBox widget exactly positioned over the given element, and that it presents it's edit box in the same place. Given the behaviors described above (and in the attached demonstration), there is no way to do this.

Attached is code that demonstrates both conditions.

Please contact jeffg@… for addition bug report information

Attachments (2)

inlinetestchild2.html (2.4 KB) - added by jeffg@… 13 years ago.
demonstrates two bug conditions for inlineEditBox widgets
InlineEditBox.js.diff (1.1 KB) - added by guest 12 years ago.
[cla] [patch] Bux fix for InlineEditBox? position from nicola.rizzo+dojo@…

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by jeffg@…

Attachment: inlinetestchild2.html added

demonstrates two bug conditions for inlineEditBox widgets

comment:1 Changed 13 years ago by alex

Milestone: 0.4.20.4.3

Changed 12 years ago by guest

Attachment: InlineEditBox.js.diff added

[cla] [patch] Bux fix for InlineEditBox? position from nicola.rizzo+dojo@…

comment:2 Changed 12 years ago by guest

The second "bug" (duplicate text) is the correct behaviour for the position (= "first") parameter. From the source code (Parse.js):
refNode: If the position argument is specified, this node is used as
a reference for inserting this node into a DOM tree; else
the widget becomes the domNode
position: The position to insert this widget's node relative to the
refNode argument
Regards,

Nicola

comment:3 Changed 12 years ago by Douglas Hays

Component: WidgetsDijit
Milestone: 0.4.40.9
Owner: changed from bill to Douglas Hays

comment:4 Changed 12 years ago by Douglas Hays

Milestone: 0.90.9beta
Resolution: fixed
Status: newclosed

Verify fixed in revision [8701] of the 0.9 dijit trunk.

Note: See TracTickets for help on using tickets.