I have the following code in my document:
$$ \frac{\displaystyle \sum_i \min(A_i,B_i)}
{\displaystyle \sum_i \max(A_i,B_i)} $$
resulting in:

I prefer "display style" here, but the size of the contents in the numerator and denominator are a bit too large for my liking in the context where they appear, so I decided to scale down.
$$ \frac{\scalebox{0.75}{\text{$\displaystyle \sum_i \min(A_i,B_i)$}}}
{\scalebox{0.75}{\text{$\displaystyle \sum_i \max(A_i,B_i)$}}} $$
but for some reason, this causes an unwanted shift:
so I'm forced to go back to standard "text style" mode in the meantime...
I can't spot why this might be happening based on the code above; I've also tried resizebox but it has the same issue ... has anyone got any idea why it's happening or how I could fix it?
(EDIT: I solved my particular problem by scaling down the fraction as a whole rather than its constituent parts; but the question remains. Is this a latex bug? Thanks.)



\frac{\sum\limits_i \min(A_i,B_i)}{\sum\limits_i \max(A_i,B_i)}. – egreg Sep 05 '16 at 14:06$$....$$– JPi Sep 05 '16 at 14:17\[ … \]preferable to$$? – egreg Sep 05 '16 at 14:38\[ ... \]is irrelevant here though. – Tasos Papastylianou Sep 05 '16 at 15:43