Closed neko-para closed 1 month ago
I've achieved it via overriding the layout vscode-tabs
(e.g. by adding display: flex
to it), but this does depend on the implementation, which shouldn't be the correct path.
The method above won't work, as the tabs are managed via display: none
, thus display: flex
will still evaluate its size.
.tabContainer {
display: flex;
flex-direction: column;
}
.tabPanel {
flex-grow: 1;
display: flex;
flex-direction: column;
}
.tabPanel[hidden] {
flex-grow: 0;
display: none;
}
.tabContent {
flex-grow: 1
}
With the css above, things do got solved.
I think the <body>
or the parent div has a 10px padding.
I think the
<body>
or the parent div has a 10px padding.
Yes, body do have a padding, thus it makes it not suitable to use 100%
, maybe.
I take this as resolved.
I take this as resolved.
Actually I don't think my approach is elegant. It relies on the implementation after all. It would be better to have a more official and robust way.
I can use css to make
vscode-tabs
to fulfill the screen, but the innervscode-tab-panel
still got the size that just contains its content. I've put a canvas inside it and using ResizeObserver to dynamic changing its size, thus I cannot just make the content bigger. I've tried addingheight: 100%
onvscode-tab-panel
, but this makes it too tall (just the same height as thevscode-tabs
)vscode-tabs
sizevscode-tab-panel
sizevscode-tab-panel
size withheight: 100%