[TYPO3-core] RFC Bug #17035: Positioning and JS behaviour of the icon to clear input fields are suboptimal

JoH asenau info at cybercraft.de
Fri Jan 14 18:02:18 CET 2011


Hi,

This is an SVN patch request

Type: Bugfix

Bugtracker reference: http://bugs.typo3.org/view.php?id=17035

Branches: trunk

Problem:
Currently there is an X-icon as a replacement of the former checkbox, 
that is used to reset/clear existing values of any input field.

Depending on the browser the position of this icon inside the box is not 
aligned "middle" relative to the box.

Additionally the JS clears the value but doesn't set the focus to the 
cleared input field.

Solution:
Attached patch changes the top position from 6px to 28% so that the 
different "computed height" of the surrounding box is taken into 
account. Additionally the focus is set to the input field.

Tested with IE8, FF, Chrome, Safarei (all Win7)

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17035.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110114/ced9cb06/attachment.asc>


More information about the TYPO3-team-core mailing list