It's not possible to hide/show while resizing, right? If so, `isResizing` will always be false so I think passing this as a param is misleading. This is an optional param that defaults to `false`, so this could simply be:

```
    PreferencesManager.setViewState(elementID, elementPrefs, null);
```