This fixes a positioning issue with responsive layouts which change the height of single line text input boxes dynamically based on window size.
Placeholder span is now positioned vertically in the middle of the input box based on outerHeights instead of basing the positioning on the input box top padding.
Resize event wasn't firing on the document object, so bound the handler to window instead.
This fixes a positioning issue with responsive layouts which change the height of single line text input boxes dynamically based on window size.
Placeholder span is now positioned vertically in the middle of the input box based on outerHeights instead of basing the positioning on the input box top padding.
Resize event wasn't firing on the
document
object, so bound the handler towindow
instead.