A possible method for correctly sizing the editor controls, and a couple buttons...