TTGTagCollectionView icon indicating copy to clipboard operation
TTGTagCollectionView copied to clipboard

`TTGTextTagLabel` finalSize calclulation issue with extraSize

Open wving5 opened this issue 7 years ago • 3 comments

https://github.com/zekunyan/TTGTagCollectionView/blob/4aec6da7cfa781eb5e981d38b008490a0f390c0e/TTGTagCollectionView/Classes/TTGTextTagCollectionView.m#L214

Use size.width < self.config.minWidth NOT finalSize.width < self.config.minWidth make _config.extraSpace.width invalid ( finalSize will be reset to minWidth), cuz config.extraSpace was added to finalSize before comparison.

In my understanding, minWidth should be used to increase NOT decrease width ...

wving5 avatar Jan 28 '19 05:01 wving5

@wving5 You can make a Pull Request 👍

zekunyan avatar Jan 28 '19 05:01 zekunyan

@wving5 I fixed this in the 1.11.1 version.

zekunyan avatar Jan 28 '19 09:01 zekunyan

Thx! You are really a nice guy ~ >.<

wving5 avatar Jan 28 '19 11:01 wving5