YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2527612 (closed defect)

Reporter


mweiss
Opened: 01/24/09
Last modified: 09/14/09
Status: closed
Type: defect
Resolution: fixed

Owner


Dav Glass
Target Release: 2.8.0
Priority: P3 (normal)
Summary: Image size resets
Description:

Reproduced in FF3, IE7, and Safari 3 for windows. Reproduced using this example: http://developer.yahoo.com/yui/examples/editor/flickr_editor.html:

1) Click on the insert image button. Insert an image into the document (inthis example I use http://l.yimg.com/a/i/ww/beta/y3.gif).
2) Close the insert image window. Resize the image
3) Reopen the insert image window and click on the window pane (anywhere that's not the insert image url text field). The image size text fields reset to the original size.

It is undesirable behavior for the image size to change if you click the window. Moreover, the actual image size does not change unless you invoke blur the height and width text fields, which is
inconsistent.

I believe this is being caused by the insert image url text field being set to focus when the window opens, and a bug in the insert image url text field's onblur() event which updates the image size
even if the image url has not changed.

The expected behavior is that the image height and width text fields do not change if the image url has not changed.

Type: defect Observed in Version: 2.6.0
Component: Editor Severity: S3 (normal)
Assigned To: Dav Glass Target Release: 2.8.0
Location: Example Priority: P3 (normal)
Tags: Relates To:
Browsers: Firefox 3.x - PC
URL:
Test Information:

Change History

Dav Glass

YUI Developer

Posted: 01/30/09
  • milestone changed to 2.NEXT
  • status changed from new to accepted

Dav Glass

YUI Developer

Posted: 06/26/09
  • milestone changed from 2.NEXT to 2.8.0

Dav Glass

YUI Developer

Posted: 07/14/09

Fixes #2527611 and #2527612 - Updated Image loading info and logic
View Commit: 948687a9b20de3f4e81ae4f00e6d53a22e01c95b

Dav Glass

YUI Developer

Posted: 07/15/09
  • status changed from accepted to checkedin

George

YUI Developer

Posted: 09/14/09
  • status changed from checkedin to closed

2.8.0 has been released. All "checkedin" items are available for download in the official release. Status of "checkedin" items is being set to closed.

George

YUI Developer

Posted: 09/14/09
  • resolution changed to fixed