DCLabel icon indicating copy to clipboard operation
DCLabel copied to clipboard

image can not auto wrap like the text dose

Open supwy opened this issue 11 years ago • 1 comments

a line with all images can not start a new line when reach the end of a line.

supwy avatar Aug 21 '13 07:08 supwy

if I understand you, this would be expect behavior. CoreText does not wrap the space drawn for images. So if the label was 300px wide and 3 images with the width of 120px where drawn , it would not wrap the third image, this would require a "\n" character to move the image to the next line. Now this does not mean some work could not be done in the parse engine or in the label to determine if this condition was found and insert the "\n" as needed. This would take some work, so I will try and tackle when possible or if you would like to do a pull request, feel free. In the mean time, I would recommend adding a "\n" when several images are on the same line.

daltoniam avatar Aug 21 '13 19:08 daltoniam