FLUID-972: Text with words seperated by multiple spaces, aren't completely visible when re-entering edit mode

Metadata

Source
FLUID-972
Type
Bug
Priority
Major
Status
Closed
Resolution
Won't Fix
Assignee
Colin Clark
Reporter
Justin Obara
Created
2008-07-22T14:25:06.000-0400
Updated
2008-12-03T11:48:43.000-0500
Versions
  1. 0.1
  2. 0.3
  3. 0.4beta1
  4. 0.4
  5. 0.5beta1
  6. 0.5
  7. 0.6beta1
Fixed Versions
N/A
Component
  1. Inline Edit

Description

After entering text seperated by multiple spaces, into an inline edit field, when you re-enter edit mode the edit field does not display wide enough to fit the entire string of text. This is because the inline edit field removes multiple spaces when it displays the text, but shows the spaces when it is displayed it edit mode. This makes the string of text longer in edit mode.

Steps to reproduce:

1) Open the inline edit demo from the daily build site:
http://build.fluidproject.org/fluid/sample-code/inline-edit/announcements/announcements.html

2) Activate an inline edit field to place it in edit mode.

3) Edit the text with a string such as "spaces hidden"

4) Press the 'enter' key. Notice that the multiple spaces are removed

5) Re-enter edit mode. Notice that the multiple spaces appear, and that the text field isn't large enough to hold the entire line of text. You should notice that only the beginning or end of the string of text is displayed

The text is all in the field, it just isn't all visible at once.

Environments

FF2, FF3, Opera 9.5, Safari 3 (Mac OS 10.5, Win XP)
FF3 (Win Vista)
FF3 (Win 2000)

Attachments

Comments

  • Justin Obara commented 2008-07-22T14:26:59.000-0400

    'screenshot-1' shows the text being entered

  • Justin Obara commented 2008-07-22T14:27:36.000-0400

    'screenshot-2' shows the text after it is entered

  • Justin Obara commented 2008-07-22T14:28:38.000-0400

    'screenshot-3' shows the text upon re-entering edit mode

  • Justin Obara commented 2008-09-22T12:54:05.000-0400

    Bug Parade: 0.5 release

  • Antranig Basman commented 2008-11-13T21:33:12.000-0500

    See comments on FLUID-886. Whitespace normalisation is a standard aspect of HTML.