Get better spacing in numerator and denominator inside delimiters

delimitersfractionsspacing

A fraction like this

\frac{1}{\begin{vmatrix}
1 & 2 & 3\\ 
4 & 5 & 6\\ 
7 & 8 & 9
\end{vmatrix}}

is nicely rendered as

enter image description here

but when we enclose it in any kind of delimiters, LaTeX goes stupid and add a lot of space so the numerator and denominator have the same size:

\left(
\frac{1}{\begin{vmatrix}
1 & 2 & 3\\ 
4 & 5 & 6\\ 
7 & 8 & 9
\end{vmatrix}}
\right)

renders as

enter image description here

How can I change this behavior?

Here's the same question, but the "answers" change the semantics of the content, which is, in my opinion, a very bad answer. I don't want to know how can I rewrite my formula to accommodate LaTeX limitations, I want LaTeX to render in a non-stupid manner.

In that post there is an answer that actually try to do this, suggesting the use of the macro \stretchleftright from the package scalerel. The problem with that approach is that the delimiters grows proportionally and will look extremely thick when the fraction is big.

Is there a better way to do that?

Best Answer

I propose this simple solution: nestin the fraction in a pmatrix environment:

\documentclass{article}
\usepackage{amsmath}

 \begin{document}

 \[ \begin{pmatrix} \dfrac{1}{\begin{vmatrix}
    1 & 2 & 3\\
    4 & 5 & 6\\
    7 & 8 & 9
    \end{vmatrix}}\end{pmatrix} \]%

\end{document} 

enter image description here