fixed resize when the element has borders