Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
fix for CalendarView not drawing the grid correctly, due to a recent …
Browse files Browse the repository at this point in the history
…change in cappuccino not drawing if a view is hidden.
  • Loading branch information
luddep committed Sep 5, 2010
1 parent 0f8f514 commit 11cb374
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion LPCalendarView.j
Expand Up @@ -150,13 +150,21 @@

// new current view
currentMonthView = slideToView;

// Display it way off,
// because cappuccino wont draw
// CGGraphics stuff unless it's visible
// due to a recent change.
[currentMonthView setFrameOrigin:CGPointMake(-500,-500)];
[currentMonthView setHidden:NO];
[currentMonthView setNeedsDisplay:YES];

[headerView setDate:aMonth];

setTimeout(function(){
[slideFromView setHiddenRows:hiddenRows];
[slideView slideToView:slideToView direction:direction animationProgress:startDelta];
}, 1);
}, 10);
}

- (void)setAllowsMultipleSelection:(BOOL)shouldAllowMultipleSelection
Expand Down

0 comments on commit 11cb374

Please sign in to comment.