element size fixing and event testing