i want to use callback ref to position the dialog in the center of the button using react.
i am calculating the dailog poistion based on the button. however the posit