flexie icon indicating copy to clipboard operation
flexie copied to clipboard

Form child elements are resized if one of the box's children is a form element.

Open nwhittaker opened this issue 12 years ago • 0 comments

In the case where an element with the "box" display style contains an immediate child that is a form element, the width/margin/padding style calculations are applied to all descendent form control elements (input/select/etc...).

This is due to the way the appendPixelValue iterates over the target. Since HTMLFormElement DOM objects can be treated as arrays (i.e. formElement[0] == the first input control), iterating over a target that is an HTMLFormElement object with forEach restyles all elements in the form's array of input controls.

Observed: Markup is modified to something like:

Expected: Markup is modified to something like:

nwhittaker avatar Dec 30 '11 20:12 nwhittaker