We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议修改如下 方法 width * self.titleLabelZoomScale
The text was updated successfully, but these errors were encountered:
你好,现在缩放有两种情况: 1、cell的子控件缩放,比如titleLabel、imageView。这种缩放不会涉及到cell宽度的变化; 2、cell宽度的缩放,属性是JXCategoryBaseView的cellWidthZoomScale,这种才会引起cell宽度变化,建议参考腾讯视频效果。
Sorry, something went wrong.
No branches or pull requests
if (self.cellWidth == JXCategoryViewAutomaticDimension) {
return ceilf([self.titles[index] boundingRectWithSize:CGSizeMake(MAXFLOAT, self.bounds.size.height) options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:@{NSFontAttributeName : self.titleFont} context:nil].size.width );
}else {
return self.cellWidth;
}
}
建议修改如下 方法 width * self.titleLabelZoomScale
if (self.cellWidth == JXCategoryViewAutomaticDimension) {
return ceilf([self.titles[index] boundingRectWithSize:CGSizeMake(MAXFLOAT, self.bounds.size.height) options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:@{NSFontAttributeName : self.titleFont} context:nil].size.width * self.titleLabelZoomScale);
}else {
return self.cellWidth;
}
}
The text was updated successfully, but these errors were encountered: