Ticket #1776039 (closed defect)

Reporter


sfbugs
Opened: 08/17/07
Last modified: 08/17/07
Status: closed
Type: defect
Resolution: Fixed

Owner


Todd Kloots
Target Release:
Priority: P3 (normal)
Summary: Changing label fails to resize outer span
Description:

Using Firefox 2.0.0.6 on Windows XP and OS X.

When dynamically changing the label by making it longer, sometimes the outer span element does not resize, causing the button to have background color only on part of the button.

You can reproduce the bug by opening the attached HTML and clicking on the "resize" button.

This happens with the default CSS, and might be a CSS resolvable problem.

When I force the span element to rerender itself, such as by doing:

spanElement.innerHTML = spanElement.innerHTML;

the span element resizes and the problem is fixed.

Any other ideas for workarounds?

Type: defect Observed in Version: None
Component: Button Severity: S3 (normal)
Assigned To: Todd Kloots Target Release:
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers:
URL:
Test Information:

Attachments

Attachment #1: 241619_test.html (download)
Attachment #2: 245168_button_patch.js.zip (download)

Change History

George

YUI Developer

Posted: 08/17/07

This bug report is being forwarded to the author or current owner of the affected component for additional investigation and response.

James Chao

Posted: 08/17/07

Actually, the workaround I submitted doesn't work. Doing this will only disconnect the button element with the outer span element. Not sure how to approach this issue at this point.

George

YUI Developer

Posted: 08/17/07
  • summary changed from Changing label fails to resize outer span to [#1429416] Changing label fails to resize outer span

added to internal bug db #1429416

George

YUI Developer

Posted: 08/29/07

This issue has been resolved. The fix will be included in the next YUI update. A comment will be added to this bug to notify you when the release is posted and the fix is available for your use.

James Chao

Posted: 08/29/07

Hi, thanks for taking care of this. But would you know if there's a workaround in the current release or when the next release would be happening? Thanks.

Todd Kloots

YUI Contributor

Posted: 09/11/07

You can use the attached patch until 2.3.1 is released. Just include this code in your page after your inclusion of the Button script files.

Todd Kloots

YUI Contributor

Posted: 09/11/07

File Added: button_patch.js.zip

James Chao

Posted: 09/11/07

Thanks, you guys are awesome!

George

YUI Developer

Posted: 09/19/07

The fix for this issue had been posted today as part of the YUI 2.3.1 release.

The status of this bug has been set to "pending". The bug will automatically close in two weeks if there is no additional comments posted to the bug. Therefore, if you integrate the latest sources into your build and verify the fix is working, no additional action need be taken.

However, if you update to YUI 2.3.1 and you are still seeing this problem, please do the following

- set the Group to 2.3.1
- add a comment to the bug stating the regression failed and include any details that may be unique to 2.3.1
- attach any updated sample code necessary for us to reproduce the issue

By updating the bug as stated above, the Status will reset to open and we will re-investigate the issue.

sf-robot

  • Username: sf-robot
Posted: 10/4/07
  • status changed from assigned to closed

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

sfbugs

Posted: 01/7/09

This ticket was imported from Source Forge.

Orginially submitted by: jameschao