The position and size of the frames inside windows are collected in the so called "perspective"
After you changed the size of a window on closing codeblocks asks you to save the changes, so when you open codeblocks the next time the windows are like when you closed it.
You can save and load perspectives with the menu View->Prespective