mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-07 11:17:12 +00:00
Update CPSearchField.j
This fixes problems with search and cancel buttons, restoring correct behavior and animations.
This commit is contained in:
@@ -122,8 +122,13 @@ var CPAutosavedRecentsChangedNotification = @"CPAutosavedRecentsChangedNotificat
|
||||
[self setContinuous:YES];
|
||||
|
||||
var bounds = [self bounds],
|
||||
cancelButton = nil, // [[CPButton alloc] initWithFrame:[self cancelButtonRectForBounds:bounds]],
|
||||
searchButton = nil; // [[CPButton alloc] initWithFrame:[self searchButtonRectForBounds:bounds]];
|
||||
cancelButton = nil,
|
||||
searchButton = nil;
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
cancelButton = [[CPButton alloc] initWithFrame:[self cancelButtonRectForBounds:bounds]];
|
||||
searchButton = [[CPButton alloc] initWithFrame:[self searchButtonRectForBounds:bounds]];
|
||||
#endif
|
||||
|
||||
[self setCancelButton:cancelButton];
|
||||
[self resetCancelButton];
|
||||
|
||||
Reference in New Issue
Block a user