Bug Tracker

Ticket #2463 (closed bug: fixed)

Opened 9 months ago

Last modified 8 months ago

Shadow causes elements it doesn't own to change size on DOM modifications

Reported by: namesbc Assigned to: paul
Type: bug Priority: major
Milestone: 1.2.4 Component: enchant
Version: 1.2.3 Keywords: shadow
Cc: Needs: Commit

Description

fx.shadow.js assumes that the next element is always the shadow element and modifies all of its child elements whenever the dom changes. The shadow is not always the next element, and in fact is never the case after the shadow is removed.

So after a shadow is removed this causes the fx.shadow code to change the size of any element that is in the position where the shadow used to be.

The fix is simple, and only requires changing line 69: $element.next() --should become--> $element.next(".fx-shadow")

Attachments

Change History

Changed 9 months ago by davidserduke

  • owner set to paul
  • component changed from fx to ui

Changed 9 months ago by paul

  • component changed from ui to enchant

Changed 8 months ago by paul

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk.

Note: See TracTickets for help on using tickets.