Skip to main content

Bug Tracker

Side navigation

#2463 closed bug (fixed)

Opened March 05, 2008 11:34PM UTC

Closed March 25, 2008 03:34PM UTC

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

Reported by: namesbc Owned by: paul
Priority: major Milestone: 1.2.4
Component: enchant Version: 1.2.3
Keywords: shadow Cc:
Blocked by: Blocking:
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 (0)
Change History (3)

Changed March 10, 2008 04:14AM UTC by davidserduke comment:1

component: fxui
owner: → paul

Changed March 14, 2008 04:42PM UTC by paul comment:2

component: uienchant

Changed March 25, 2008 03:34PM UTC by paul comment:3

resolution: → fixed
status: newclosed

Fixed in trunk.