CropMe icon indicating copy to clipboard operation
CropMe copied to clipboard

fix CropImageView zero size

Open viachaslaukukhto opened this issue 1 year ago • 0 comments

Sometimes onPreDraw is called before the view gets its dimensions. As a result, the CropImageView has zero dimensions and ViewTreeObserver.OnPreDrawListener unsubscribes. The fix does not allow you to set the size of the frame of the CropImageView if the view has not yet received the dimensions.

viachaslaukukhto avatar Aug 12 '22 16:08 viachaslaukukhto