Improved downcast function to consider resizer wrapper. Added zero-width spaces to resizer elements.