I need to show "Loading image..." mask during update src property of Img component by click button.
This code not show load mask:
certImg.setLoading('Loading image...');
certImg.setSrc('load_image.php?file_name=' + record.get('invoice_item_file'));
certImg.setLoading(false);
And this code show, but don't hide load mask (it shown over updated image):
certImg.setLoading('Loading image...');
certImg.setSrc('load_image.php?file_name=' + record.get('invoice_item_file'));
I try to increase image size up to 1-2 Mb, this made load it 3-4 sec, but load mask still not showing... I also tried put certImg.setLoading(false) to afterrender Img event, the result was the same.
And when commented "certImg.setLoading(false);" - img is updated, but loadmask still shown over img...