Just reuse `containerWidget` and `containerHeight` declared above instead of re-getting them.