Libraryless. Click here for Pure Java version (17031L/104K).
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)); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035034 |
Snippet name: | test_imageSurfaceRevalidationInFullCenter [OK] |
Eternal ID of this version: | #1035034/13 |
Text MD5: | ca491dcde19a55917b5b8f045ab3e51c |
Transpilation MD5: | d5eb750bc122e9dd63d43ca74999c620 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-24 15:08:13 |
Source code size: | 809 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 132 / 231 |
Version history: | 12 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |