How to make N4V FOR WEBI exports fully responsive in HTML

Anonymised summary of support ticket #472795 (2023-06-21)

Symptom

After upgrading to SAP BusinessObjects Web Intelligence 4.3 and N4V FOR WEBI 2023.1.0, HTML exports of charts or maps no longer adapt their height to the container size, even though width responsiveness still works. Previously, manual CSS adjustments were sufficient, but now the height remains fixed.

Environment

SAP BusinessObjects Web Intelligence 4.3 SP3, N4V FOR WEBI 2023.1.0, HTML export with iframe embedding

Resolution

  1. Add the following CSS to the exported HTML file to ensure full responsiveness:
  2. ```css
  3. html, body, #container {
  4. height: 100% !important;
  5. }
  6. ```
  7. Apply this CSS to the exported HTML files before embedding them in iframes.

Other resolution

For automated processing, use a script to inject the CSS into the HTML files. Example using sed (Unix/Linux):