Fix offset issue when using relative positioned `container` option