Skip to content

Commit 3c6c4dd

Browse files
committed
Set width style to min-width - see whether this behaves better in practice.
1 parent 21562d5 commit 3c6c4dd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

assets/reportviewer.net.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
display: flex;
6666
flex-direction: row;
6767
width: 100%;
68-
margin-bottom: 0.75rem;
69-
overflow: hidden;
68+
margin-bottom: 0.75rem;
69+
overflow-x: auto;
7070
}
7171

7272
.report-row td div:not(.report-row) {

src/ReportViewer.NET.Web/wwwroot/css/site.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
display: flex;
6666
flex-direction: row;
6767
width: 100%;
68-
margin-bottom: 0.75rem;
69-
overflow: hidden;
68+
margin-bottom: 0.75rem;
69+
overflow-x: auto;
7070
}
7171

7272
.report-row td div:not(.report-row) {

src/ReportViewer.NET/DataObjects/ReportItems/Rectangle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public override string Build(ReportItem parent)
4444

4545
foreach (var reportRow in rectangleReportRows)
4646
{
47-
sb.AppendLine($"<div class=\"report-row\" style=\"max-width:{reportRow.RowWidth}mm\">");
47+
sb.AppendLine($"<div class=\"report-row\" style=\"min-width:{reportRow.RowWidth}mm\">");
4848

4949
foreach (var reportItem in reportRow.RowItems)
5050
{

src/ReportViewer.NET/LayoutProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public async Task<HtmlString> PublishReportOutput(ReportRDL report, IEnumerable<
135135

136136
foreach (var reportRow in bodyReportRows)
137137
{
138-
sb.AppendLine($"<div class=\"report-row\" style=\"max-width:{reportRow.RowWidth}mm\">");
138+
sb.AppendLine($"<div class=\"report-row\" style=\"min-width:{reportRow.RowWidth}mm\">");
139139

140140
foreach (var reportItem in reportRow.RowItems)
141141
{

0 commit comments

Comments
 (0)