The code that checks `_resizeCounter` is in `CesiumWidget`, but this code is in `Viewer`.  Shouldn't all these changes be in `CesiumWidget`?