CPScrollViewTest-fix

This commit is contained in:
Didier Korthoudt committed 2018-05-25 08:57:11 +02:00
1 parent 31fe918b3d
commit 41b0f80360
1 file changed
+2 -2
+2 -2
View File
@@ -341,14 +341,14 @@
- (void)testDocumentVisibleRect
{
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleOverlay];
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMake(0.0, 0.0, 1024.0, 768.0)
styleMask:CPWindowNotSizable],
windowView = [theWindow contentView],
aScrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)],
aDocumentView = [[CPView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleOverlay];
[aScrollView setDocumentView:aDocumentView];
[windowView addSubview:aScrollView];