Fixed an issue in which resource viewers do not adapt to resize events