There is no "cake on a table" that affects Alice's size in Lewis Carroll's Alice's Adventures in Wonderland.
You're likely thinking of the "Eat Me" cake—Alice eats it and shrinks. Conversely, the "Drink Me" potion makes her grow.
Let me know if you'd like to discuss other Alice in Wonderland details!