Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1bedeed

Browse files
bug fix
1 parent 620b14f commit 1bedeed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Coding_iOS/Util/OC_Category/UIButton+Common.m‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ - (void)setUserTitle:(NSString *)aUserName{
6363
- (void)setUserTitle:(NSString *)aUserName font:(UIFont *)font maxWidth:(CGFloat)maxWidth{
6464
[self setTitle:aUserName forState:UIControlStateNormal];
6565
CGRect frame = self.frame;
66-
CGFloat titleWidth = [self.titleLabel.text getWidthWithFont:font constrainedToSize:CGSizeMake(kScreen_Width, frame.size.height)];
66+
CGFloat titleWidth = [self.titleLabel.text getWidthWithFont:font constrainedToSize:CGSizeMake(CGFLOAT_MAX, frame.size.height)];
6767
if (titleWidth > maxWidth) {
6868
titleWidth = maxWidth;
6969
// self.titleLabel.minimumScaleFactor = 0.5;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /