Closed Bug 586135 Opened 14 years ago Closed 14 years ago

Web Console input field isn't resized when the user presses Return

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: pcwalton, Assigned: pcwalton)

References

Details

(Whiteboard: [kd4b5] [patchclean:0817])

Attachments

(2 files)

Attached patch Proposed patch.Splinter Review
When the user presses Return to submit a long line of JavaScript, the Web Console field isn't resized. This problem also occurs on other events that change the value of that field without triggering key presses (undo, for example).

The attached patch fixes this.

Requesting blocking status for Firefox 4 because this is a serious UI issue with the Console.
Attachment #464657 - Flags: feedback?
blocking2.0: --- → ?
Please set the feedback flag with a bugzilla id:)
Attachment #464657 - Flags: feedback? → feedback?(jviereck)
Comment on attachment 464657 [details] [diff] [review]
Proposed patch.

>+  /**
>+   * Sets the value of the input field (command line), and resizes the field to
>+   * fit its contents. This method is preferred over settings "inputNode.value"
>+   * directly, because it correctly resizes the field.
>+   *
>+   * @param string newValue
>+   *        The new value to set.
>+   * @returns void
>+   */
>+  setInputValue: function JST_setInputValue(newValue)
>+  {
>+    this.inputNode.value = newValue;
>+    this.resizeInput();
>+  },
>+

Use aNewValue as argument variable. Otherwise f+!
Attachment #464657 - Flags: feedback?(jviereck) → feedback+
Patch revised per feedback.
Attachment #466720 - Flags: review?(dietrich)
Attachment #466720 - Flags: review?(dietrich) → review+
Comment on attachment 466720 [details] [diff] [review]
Proposed patch (revised per feedback).

Requesting approval to land this in Firefox 4.
Attachment #466720 - Flags: approval2.0?
Attachment #466720 - Flags: approval2.0? → approval2.0+
Keywords: checkin-needed
Whiteboard: [kd4b5] [patchclean:0817]
The Web Console doesn't actually resize anymore due to a regression, so this bug is no longer applicable.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Depends on: 588967
Keywords: checkin-needed
(In reply to comment #5)
> The Web Console doesn't actually resize anymore due to a regression, so this
> bug is no longer applicable.

will it be reopened after the regression is fixed?
(In reply to comment #6)
> (In reply to comment #5)
> > The Web Console doesn't actually resize anymore due to a regression, so this
> > bug is no longer applicable.
> 
> will it be reopened after the regression is fixed?

Presumably the patch that fixes the regression will fix this one as well :)
Canceling blocking per comment #5.
blocking2.0: ? → ---
Blocking request, that is.
No longer depends on: 588967
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: