Skip to main content


 

Symptoms


Height and Width of K2 Form Viewer
 

Diagnoses


We noticed that whenever we add "K2 Form Viewer" web part on a SharePoint page and set its Width and Height properties to "Automatic", the web part is not setting automatically adjusting its size as per the content loaded in the form. Instead we are getting horizontal and vertical scroll bars on the page. We have to give a fixed width and height in web part properties to overcome this issue
 

Resolution

The reason for this behaviour is because when the form loads into the Web part SharePoint automatically it sets the Web Parts height and width properties. When the properties are set, the data loads, causing the increasing in height/width requiring the scrolling arrows. This behaviour is not unique to K2 as if you are using the Content Editor or Page Viewer and if you view a page such as google or any other site on the SharePoint site you will see the same behaviour. This is how SharePoint handles the auto-adjust as standard.
 




 
Be the first to reply!

Reply