Skip to content

Commit d1335c1

Browse files
committed
fixes
1 parent 13b41da commit d1335c1

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

sample/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
<node-projects-tab style="position: absolute; width: 300px; height: 300px;">
2323
<div header="Tab 1" style="background: red; display: none; height: 100%;" >Tab Content of Tab 1</div>
2424
<div header="Tab 2" style="background: green; display: none; height: 100%;">Tab Content of Tab 2</div>
25+
<div header="Tab 1" style="background: red; display: none; height: 100%;" >Tab Content of Tab 1</div>
26+
<div header="Tab 2" style="background: green; display: none; height: 100%;">Tab Content of Tab 2</div>
27+
<div header="Tab 1" style="background: red; display: none; height: 100%;" >Tab Content of Tab 1</div>
28+
<div header="Tab 2" style="background: green; display: none; height: 100%;">Tab Content of Tab 2</div>
29+
<div header="Tab 1" style="background: red; display: none; height: 100%;" >Tab Content of Tab 1</div>
30+
<div header="Tab 2" style="background: green; display: none; height: 100%;">Tab Content of Tab 2</div>
31+
<div header="Tab 1" style="background: red; display: none; height: 100%;" >Tab Content of Tab 1</div>
32+
<div header="Tab 2" style="background: green; display: none; height: 100%;">Tab Content of Tab 2</div>
2533
</node-projects-tab>
2634
</body>
2735
</html>

src/designer/TabPlacementService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export default class TabPlacementService extends DefaultPlacementService {
1414
i.removeStyle('position');
1515
if (i.hasStyle('width'))
1616
i.removeStyle('width');
17-
if (i.hasStyle('heigth'))
18-
i.removeStyle('heigth');
17+
if (i.hasStyle('height'))
18+
i.removeStyle('height');
1919
if (i.hasStyle('left'))
2020
i.removeStyle('left');
2121
if (i.hasStyle('top'))

src/tab/TabWebcomponent.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@ export class TabWebcomponent extends BaseCustomWebComponentConstructorAppend {
1414
position: static;
1515
}
1616
17+
.tab-header-container::-webkit-scrollbar {
18+
display: none;
19+
}
20+
1721
.tab-header-container {
22+
scrollbar-width: none;
1823
height: 30px;
1924
display: flex;
2025
user-select: none;
2126
flex-direction: row;
2227
cursor: pointer;
2328
background: inherit;
29+
white-space: nowrap;
30+
overflow: auto;
2431
}
2532
2633
.tab-header-container > div {

0 commit comments

Comments
 (0)