Skip to content

Commit

Permalink
fix vert tab widget
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Apr 26, 2024
1 parent 77787b2 commit ae01fe7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ const TabWidgetVertical: FunctionComponent<PropsWithChildren<Props>> = ({childre
onCurrentTabIndexChanged={setCurrentTabIndex}
/>
</div>
<div style={{position: 'absolute', left: leftPanelWidth, top: 0, width: W - leftPanelWidth, height: H}}>
<div style={{position: 'absolute', left: leftPanelWidth, top: 0, width: W, height: H}}>
{
children2.map((c, i) => {
const visible = i === currentTabIndex
return (
<div key={`child-${i}`} style={{visibility: visible ? undefined : 'hidden', overflowY: 'hidden', overflowX: 'hidden', position: 'absolute', left: 0, top: 0, width: W - leftPanelWidth, height: H}}>
<div key={`child-${i}`} style={{visibility: visible ? undefined : 'hidden', overflowY: 'hidden', overflowX: 'hidden', position: 'absolute', left: 0, top: 0, width: W, height: H}}>
{
hasBeenVisible.includes(i) && <c.type {...c.props} width={W} height={H - vm * 2}/>
}
Expand Down

0 comments on commit ae01fe7

Please sign in to comment.