mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-11 09:28:45 +00:00
CPScrollViewTest-fix
This commit is contained in:
1 parent
31fe918b3d
commit
41b0f80360
1 file changed
+2
-2
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user