Skip to content

Commit

Permalink
Merge pull request #12 from Gusted/use-full-screen
Browse files Browse the repository at this point in the history
Take up all space as given
  • Loading branch information
realaravinth authored Jul 27, 2022
2 parents 800e688 + c49d7a3 commit 90701b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const MCaptchaWidget = (config: WidgetConfig): ReactElement => {
id='mcaptcha-widget__iframe'
scrolling='no'
sandbox='allow-same-origin allow-scripts'
width='304'
height='78'
width='100%'
height='100%'
frameBorder='0'
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/src/lib/Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
id="mcaptcha-widget__iframe"
scrolling="no"
sandbox="allow-same-origin allow-scripts"
width="304"
height="78"
width="100%"
height="100%"
frameBorder="0"
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/vanilla/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export default class Widget {
iframe.setAttribute("sandbox", "allow-same-origin allow-scripts");
}
}
iframe.width = "304";
iframe.height = "78";
iframe.width = "100%";
iframe.height = "100%";
iframe.frameBorder = "0";

parentElement.appendChild(iframe);
Expand Down

0 comments on commit 90701b3

Please sign in to comment.