set flag revalidateIncludingFullCenterContainer_debug. svoid test_imageSurfaceRevalidationInFullCenter() { ImageSurface imageSurface = imageSurface(); imageSurface.setImage(whiteImage(50, 50)); imageSurface.verbose(true); enableScaffolding(imageSurface); showFrame(jMinSize(500, 500, jscroll_borderless(setBackground(Color.gray, jFullCenter(imageSurface))))); sleepSeconds(1); var parent = getParent(imageSurface); print("Parent layout: " + parent.getLayout()); print("Parent: " + parent); assertEqualsVerbose("Image surface size (base line)", new Dimension(50, 50), jGetSize(imageSurface)); imageSurface.setImage(whiteImage(100, 100)); sleepSeconds(1); assertEqualsVerbose("Image surface size after image change", new Dimension(100, 100), jGetSize(imageSurface)); }