File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public override void Execute(ProcessingContext context)
36
36
. AdjustToContents ( xlRange . FirstRowUsed ( ) . RowNumber ( ) - 1 , xlRange . LastRowUsed ( ) . RowNumber ( ) ) ;
37
37
}
38
38
// range column
39
- if ( IsSpecialRangeRow ( xlCell ) )
39
+ else if ( IsSpecialRangeRow ( xlCell ) )
40
40
{
41
41
ws . Column ( cellClmn ) . AdjustToContents ( xlRange . FirstRowUsed ( ) . RowNumber ( ) , xlRange . LastRowUsed ( ) . RowNumber ( ) ) ;
42
42
}
Original file line number Diff line number Diff line change @@ -42,6 +42,20 @@ public void OnlyValues_option_should_remove_formulas_on_sheet()
42
42
} ) ;
43
43
}
44
44
45
+ [ Fact ]
46
+ public void ColsFit_option_should_FitWidth ( )
47
+ {
48
+ Thread . CurrentThread . CurrentCulture = CultureInfo . CreateSpecificCulture ( "ru-RU" ) ;
49
+ XlTemplateTest ( "5_options.xlsx" ,
50
+ tpl => { } ,
51
+ wb =>
52
+ {
53
+ var worksheet = wb . Worksheet ( 1 ) ;
54
+ worksheet . Column ( 4 ) . Width . Should ( ) . BeInRange ( 4.969999 , 497009 ) ;
55
+ worksheet . Column ( 5 ) . Width . Should ( ) . BeInRange ( 13.57999 , 13.58001 ) ;
56
+ } ) ;
57
+ }
58
+
45
59
[ Fact ]
46
60
public void Sort_option_should_sort_range ( )
47
61
{
@@ -63,4 +77,4 @@ public ReportOptionsTests(ITestOutputHelper output) : base(output)
63
77
{
64
78
}
65
79
}
66
- }
80
+ }
You can’t perform that action at this time.
0 commit comments