mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 13:46:17 +08:00
Ignore merged cells when calculating column width
When calculating column width cells that are merged should be ignored. This is MS Excel behavior and should be handled similar in ABAP2XLSX.
This commit is contained in:
parent
c31528604e
commit
21a63fd96e
|
@ -3174,6 +3174,10 @@ ENDMETHOD.</source>
|
||||||
* col_alpha = zcl_excel_common=>convert_column2alpha( <auto_size>-col_index )." issue #155 - less restrictive typing for ip_column
|
* col_alpha = zcl_excel_common=>convert_column2alpha( <auto_size>-col_index )." issue #155 - less restrictive typing for ip_column
|
||||||
count = 1.
|
count = 1.
|
||||||
WHILE count <= highest_row.
|
WHILE count <= highest_row.
|
||||||
|
* Do not check merged cells
|
||||||
|
IF is_cell_merged(
|
||||||
|
ip_column = <auto_size>-col_index
|
||||||
|
ip_row = count ) = abap_false.
|
||||||
* Start of change # issue 139 - Dateretention of cellstyles
|
* Start of change # issue 139 - Dateretention of cellstyles
|
||||||
* IF cell_style IS BOUND.
|
* IF cell_style IS BOUND.
|
||||||
* CREATE OBJECT cell_style.
|
* CREATE OBJECT cell_style.
|
||||||
|
@ -3201,6 +3205,7 @@ ENDMETHOD.</source>
|
||||||
IF width > <auto_size>-width.
|
IF width > <auto_size>-width.
|
||||||
<auto_size>-width = width.
|
<auto_size>-width = width.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
ENDIF.
|
||||||
count = count + 1.
|
count = count + 1.
|
||||||
ENDWHILE.
|
ENDWHILE.
|
||||||
* column_dimension = me->get_column_dimension( col_alpha ). " issue #155 - less restrictive typing for ip_column
|
* column_dimension = me->get_column_dimension( col_alpha ). " issue #155 - less restrictive typing for ip_column
|
||||||
|
|
Loading…
Reference in New Issue
Block a user