Skip to content

Commit

Permalink
Fix iframe Answers Map/List toggle button on Mobile Error
Browse files Browse the repository at this point in the history
Iframe needs height in order for map and toggle button to be
initialized and to fill js-answersMap
  • Loading branch information
jesuyedavid committed Sep 25, 2023
1 parent 0222c71 commit 23683ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/js/iframe-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export function generateIFrame(domain, answersExperienceFrame) {
iframe.frameBorder = 0;

// For dynamic iFrame sizing
iframe.style.height = '100%';
iframe.style.minHeight = '100%';
iframe.style.width = '1px';
iframe.style.minWidth = '100%';
iframe.id = 'answers-frame';
Expand Down

0 comments on commit 23683ab

Please sign in to comment.