We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ImageNode Image Padding

Thread ID:





142901 Feb 25,2019 01:33 PM UTC Feb 27,2019 10:50 AM UTC ASP.NET MVC - EJ 2 1
Tags: Diagram
Asked On February 25, 2019 01:33 PM UTC

When I create an ImageNode and add an image to the node, the image is stretched to fill the node. How can I have the image not stretch or add in padding so the image does not take up the whole node?

Ramya Thirugnanam [Syncfusion]
Replied On February 27, 2019 10:50 AM UTC

Hi Neill, 
Thanks for contacting Syncfusion support. 
We does not apply any padding to the images inside node. We can align the image with the scale option in shape. By default, the scale is set as none.  
Please set scale as ‘Meet’ and align as ‘XMinYMin’ to image to avoid the image to stretch into whole node. 
For more information about image alignment,  please refer to the below help documentation link. 
Ramya T 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon