If i understand you have more then one element. That will not work i think, it set the size only if you have ONE element.

Maybe you can work with size_x / _y?