You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior
I am using this module for a mobile app. For a display in portrait mode, where the width is 375 px, the first word added is often clipped. The word is long "conscientiousness" but it should easily fit in the width.
Expected behavior
The tag should be shown in the middle but it is shown on the left or right at random location and hence the text is clipped often.
Angular version:
Angular 17
angular-tag-cloud-module version:
17.0.1
I checked the code and the issue is with line 530. Randomness without bounds can place the tag outside of the div, hence it is clipped.
The following code
Current behavior
I am using this module for a mobile app. For a display in portrait mode, where the width is 375 px, the first word added is often clipped. The word is long "conscientiousness" but it should easily fit in the width.
Expected behavior
The tag should be shown in the middle but it is shown on the left or right at random location and hence the text is clipped often.
Angular version:
Angular 17
angular-tag-cloud-module version:
17.0.1
I checked the code and the issue is with line 530. Randomness without bounds can place the tag outside of the div, hence it is clipped.
The following code
can be replaced by the following by just placing some limits on the left value.
Now it will clip only when the text is larger than the screen.
The text was updated successfully, but these errors were encountered: