Fixed my previously fixed function) Just noticed, that same thing happens, when element
positioned also with right style.