Skip to content

Commit

Permalink
feat: ✨Krpano组件添加默认大小
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLLLLH committed Dec 23, 2020
1 parent 1b2c1a8 commit fa8d678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Krpano.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Krpano: React.FC<KrpanoProps> = ({ className, currentScene, target = 'krpa
return (
<KrpanoRendererContext.Provider value={renderer}>
<CurrentSceneContext.Provider value={currentScene || null}>
<div id={target} className={className}>
<div id={target} className={className} style={className ? {} : { width: '100vw', height: '100vh' }}>
{renderer ? children : null}
</div>
</CurrentSceneContext.Provider>
Expand Down

0 comments on commit fa8d678

Please sign in to comment.