SfImageEditor control not stretching to full height/width for low resolution images when used on a Fragment

Hi Syncfusion.

Using SfImageEditor for Android, NuGet version 18.4.0.41. I'm currently trying to implement the SfImageEditor control inside a Fragment. Functionality of the control is not impaired, however, it doesn't seem to handle image scaling correctly for low resolution pictures, and the control itself seems to wrap around the original size of the image, causing it to not fill the full fragment, even if setting the LayoutParameters for the control to match the fragment's layout params.. In contrast, when using the control inside a regular activity (as exemplified in the Samples), the control fills the whole activity and the image stretches correctly inside it.

Interestingly, editing the photo and then resetting it causes the control to work correctly, which makes me suspect something in the control layout is not initializing correctly when not inside an activity. I've attached a couple of pictures which demonstrate the issue with a JPG image with dimensions 329x153. Is there a way to get the control to fill the entire fragment from the start like it does when contained inside an activity?

Thanks in advance.



Attachment: Samples_c8f206c5.zip

1 Reply 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team February 12, 2021 05:00 AM UTC

Hi  Lester Botello,

Greetings from Syncfusion.

We have checked the reported query and screenshot and we have prepared sample with SfImageEditor control inside the fragment and working fine at our end.



Tested device detail:
 
MI A3(Android version 10)

Please have a sample from below link
https://www.syncfusion.com/downloads/support/directtrac/general/ze/EditorSample-1383517345

·       If the issue is not reproduced in the above sample, please revert us by modifying the sample based on your application along with the replication procedure. 
 
·       Can you provide the overall page structure used in your project?   
·       Can you share the Syncfusion versions and also device configuration details?

Regards,
Sridevi S.
 


Marked as answer
Loader.
Up arrow icon