Opened 12 years ago

Closed 12 years ago

#4167 closed defect (wontfix)

InlineEditBox: editor is 1/2 the width of the renderer

Reported by: bill Owned by: bill
Priority: high Milestone: 1.0
Component: Dijit Version: 0.9
Keywords: Cc:
Blocked By: Blocking:


On themeTester.html on FF and Safari (and maybe IE), when you click the dijit.form.InLineEditBox? + dijit.form.TextBox? test, the editor is half the width of the original text. Should be same width.

Probably due to trying to read element style on widget instantiation.

Change History (4)

comment:1 Changed 12 years ago by Douglas Hays

I need help understanding the requirements of an inline edit box. If the rendered text is 1 character, I don't think the editor should be 1 character wide. Currently, the editor has a user-defined style.

comment:2 Changed 12 years ago by bill

(In [10354]) Better testcase for how I want InlineEditBox? to work.

  • shows how you should specify a width for inline elements similar to the way

you specify the width of an <input>... ie, a width that is unrelated to the width of the current value.

  • Also gives much better test of inherited styles from <style> tags and from the

browser's builtin rules for <p>, <h3>, etc. (All such style info must appear in the non-editing version of the text and the edit version of the tet.)

  • Also demonstrates a problem with specifying paragraphs of text, inserting

unwanted line breaks (see #4098 for possible solution).

Refs #4097, #4098, #4167.

comment:3 Changed 12 years ago by Douglas Hays

Owner: changed from Douglas Hays to bill

InlineEditBox? being redesigned by bill

comment:4 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

OK, I couldn't figure out a way to fix this, since it's hard to get the width of display:inline text (ie, text in a span). So punting for now.

Note: See TracTickets for help on using tickets.