The maximum number of items you can trade in a single transaction is nine, regardless of how many (or how few) boxes are available in the trade window you're using. That's why you can trade nine items even if the person with whom you're trading is using the default trade window, or for that matter, even if you are.
-- Darryl