Method
isShrinkWrapped
(int oldPixmapWidth, int oldPixmapHeight)
Source from the content-addressed store, hash-verified
| 749 | } |
| 750 | |
| 751 | protected boolean isShrinkWrapped(int oldPixmapWidth, int oldPixmapHeight) { |
| 752 | Dimension size = pageScroll.getSize(); |
| 753 | if (oldPixmapWidth == 0 && oldPixmapHeight == 0) |
| 754 | return true; |
| 755 | if (oldPixmapWidth + 4 == size.width && oldPixmapHeight + 4 == size.height) |
| 756 | return true; |
| 757 | return false; |
| 758 | } |
| 759 | |
| 760 | protected void shrinkWrap() { |
| 761 | Dimension newSize = new Dimension(pixmapWidth, pixmapHeight); |
Tested by
no test coverage detected