Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: plugin widget's width using iframe's default (#283)
Browse files Browse the repository at this point in the history
fix issue of iframe's default 300 width being used if not set by plugin
  • Loading branch information
KaWaite committed Jul 25, 2022
1 parent bd39687 commit 572da09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/atoms/Plugin/IFrame/hooks.ts
Expand Up @@ -111,7 +111,7 @@ export default function useHook({
? typeof width === "number"
? width
: width + "px"
: "html.offsetWidth + horizontalMargin + scrollbarW"
: "html.offsetWidth + horizontalMargin"
};
const height = ${
height
Expand Down

0 comments on commit 572da09

Please sign in to comment.