}
if (resizable) {
resizer.setEnabled(false);
}
fireEvent(new MaximizeEvent());
} else {
// EXTGWT-2731 - when maximizeable, and instead of fitting, make the window maximized, otherwise
// it appears out of sync with button max/restore.
if (maximizable) {
maximized = false;