cancel
Showing results for 
Search instead for 
Did you mean: 

Problem displaying widget content in portal page

chiara_ferrari
Explorer
0 Kudos

Hello,

I have developed a Web Content Widget and deployed it to SAP Cloud Platform correctly. Then I have created a new portal site including the widget in a page.

Until last week I have been able to see the content of the widget correctly but since friday 26th October the content was not displayed anymore. I did some tests with Chrome, Firefox, Edge and IE.

When I inspect the code, I'm able to see the complete widget content code but it's like some wrapper elements get hidden somewhere..

In the widget I have added a SAPUI5 view and configured the widget to show the view and use the methods in the controller. Until last week it all worked fine.

Do you have any idea how to solve this? Has been released some update that creates conflict?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Dear Sir,

I have got this issue, Please give me the instruction.

Best Regards,

Peeraput

chiara_ferrari
Explorer
0 Kudos

Hello,

we've found out that there's a div wrapping the view with a height of around 20px, despite it has inline-css property "height: 100%".

If we set the min-height property the widget is displayed.

To achieve that, in the method onAfterRendering of the controller we add:

var viewId = this.getView().sId;
var container = document.getElementById( viewId ).children[0];
container.style.minHeight = "600px"; 

Any other idea to solve the bug is welcome.