This is down to the quote height detection which is happening before the GALLERY BB code content is loaded in, therefore not detecting that the content is bigger than the minimum quote height.
We have made a change (in XFMG 1.1.1) so that the quote code recalculates this after the content is loaded in.