Skip to content

Commit 2d99ee9

Browse files
committed
2 parents 3bd1f28 + 21238ea commit 2d99ee9

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<PackageReference Include="BootstrapBlazor.BarCode" Version="9.0.1" />
3030
<PackageReference Include="BootstrapBlazor.BarcodeGenerator" Version="9.0.0" />
3131
<PackageReference Include="BootstrapBlazor.BootstrapIcon" Version="9.0.2" />
32-
<PackageReference Include="BootstrapBlazor.Chart" Version="9.0.2" />
32+
<PackageReference Include="BootstrapBlazor.Chart" Version="9.0.3" />
3333
<PackageReference Include="BootstrapBlazor.ChatBot" Version="9.0.0" />
3434
<PackageReference Include="BootstrapBlazor.CherryMarkdown" Version="9.0.3" />
3535
<PackageReference Include="BootstrapBlazor.CodeEditor" Version="9.0.3" />
@@ -56,7 +56,7 @@
5656
<PackageReference Include="BootstrapBlazor.MeiliSearch" Version="9.1.12" />
5757
<PackageReference Include="BootstrapBlazor.Mermaid" Version="9.0.4" />
5858
<PackageReference Include="BootstrapBlazor.Middleware" Version="9.0.0" />
59-
<PackageReference Include="BootstrapBlazor.MindMap" Version="9.1.6" />
59+
<PackageReference Include="BootstrapBlazor.MindMap" Version="9.1.7" />
6060
<PackageReference Include="BootstrapBlazor.MouseFollower" Version="9.0.1" />
6161
<PackageReference Include="BootstrapBlazor.OctIcon" Version="9.0.6" />
6262
<PackageReference Include="BootstrapBlazor.OfficeViewer" Version="9.0.0" />

src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
window.BootstrapBlazor.MindMap = {
66
callbacks: {
77
clickCustom: function (args) {
8-
8+
console.log(args);
99
}
1010
}
1111
}

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.11.2-beta03</Version>
4+
<Version>9.11.2-beta04</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Table/Table.razor.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,22 +730,24 @@ const autoFitColumnWidth = async (table, col) => {
730730
const index = indexOfCol(col);
731731
let rows = null;
732732
if (table.thead) {
733-
rows = table.body.querySelectorAll('table > tbody > tr:not(.is-detail)');
733+
rows = [...table.tables[1].tBodies[0].rows].filter(x => !x.classList.contains('is-detail'));
734734
}
735735
else {
736-
rows = table.tables[0].querySelectorAll('table > tbody > tr:not(.is-detail)');
736+
rows = [...table.tables[0].tBodies[0].rows].filter(x => !x.classList.contains('is-detail'));
737737
}
738738

739739
let maxWidth = 0;
740-
[...rows].forEach(row => {
740+
rows.forEach(row => {
741741
const cell = row.cells[index];
742742
maxWidth = Math.max(maxWidth, calcCellWidth(cell));
743743
});
744744

745745
if (table.options.fitColumnWidthIncludeHeader) {
746746
const th = col.closest('th');
747747
const span = th.querySelector('.table-cell');
748-
maxWidth = Math.max(maxWidth, calcCellWidth(span));
748+
const thStyle = getComputedStyle(th);
749+
const margin = parseFloat(thStyle.getPropertyValue('padding-left')) + parseFloat(thStyle.getPropertyValue('padding-right'))
750+
maxWidth = Math.max(maxWidth, calcCellWidth(span)) + margin;
749751
}
750752

751753
if (table.options.autoFitColumnWidthCallback !== null) {

0 commit comments

Comments
 (0)