Note that by default, pressing the fullscreen button hides the dock and menu bar.  Pressing the fullscreen button again restores the window to its original size, and also brings back the dock and menu bar.