Code

Store the maximized state in the document (closes bug #168422)