* fixed bug where vertical position not taken into account