Added computeBottomRight method to elements