fixed CPSearchField search and cancel buttons so they stay positioned correctly when resized.

This commit is contained in:
Randall Luecke
2009-10-25 19:17:01 -07:00
committed by Ross Boucher
parent 86d5ea6c64
commit b5cdcec004
+2
View File
@@ -106,10 +106,12 @@ var CPSearchFieldSearchImage = nil,
[_cancelButton setHidden:YES];
[_cancelButton setAutoresizingMask:CPViewMinXMargin];
[self addSubview:_cancelButton];
_searchButton = [[CPButton alloc] initWithFrame:CPMakeRect(5,(frame.size.height-25)/2,25,25)];
[_searchButton setBezelStyle:CPRegularSquareBezelStyle];
[_searchButton setAutoresizingMask:CPViewMaxXMargin]
[_searchButton setBordered:NO];
[_searchButton setImageScaling:CPScaleToFit];