openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.table.Column headerSpan sets all following column headers to display:none

Open mkueng1 opened this issue 11 years ago • 2 comments

OpenUI5 version: 1.32 Browser/version (+device/version): FF, Chrome, IE11

What is the expected result? My first column header of the table should span over 4 columns.

What happens instead? As soon as headerSpan="4" (surprisingly also 1) is defined all of the following headers are set to display:none via the element style. Therefore only the correctly spanning header is visible.

Steps to reproduce the problem:

<c:FragmentDefinition 
    xmlns="sap.ui.table" 
    xmlns:mvc="sap.ui.core.mvc" 
    xmlns:u="sap.ui.unified" 
    xmlns:c="sap.ui.core" 
    xmlns:m="sap.m">
    <Table 
        rows="{/entries}"
        enableSelectAll="false"
        selectionMode="None"
        visibleRowCountMode="Auto">
        <columns>
            <Column width="1.2rem" headerSpan="4">
                <m:Label text="{i18n>entrieslist.column.name}" />
                <template>
                    <m:Button class="centered-table-btns" icon="sap-icon://crm-service-manager" tooltip="View" press="showDetailsDialog" />
                </template>
            </Column>
            <Column  width="1.2rem">
                <template>
                    <m:Button class="centered-table-btns" icon="sap-icon://delete" tooltip="Delete" press="deleteEntry" />
                </template>
            </Column>
            <Column width="5rem" >
                <template>
                    <m:Link text="{lastname}" press="showDetailsPage" wrapping="false"/>
                </template>
            </Column>
            <Column width="5rem">
                <template>
                    <m:text text="{firstname}" wrapping="false"/>
                </template>
            </Column>
            <Column width="11rem" sorted="true" sortProperty="{telephone}" >
                <m:Label text="{i18n>entrieslist.column.number}" />
                <template>
                    <m:text text="{telephone}" wrapping="false"/>
                </template>
            </Column>

mkueng1 avatar Nov 23 '15 10:11 mkueng1

Hello mkueng1,

thank you for reporting this issue. I converted your code fragment to a working jsbin example. http://jsbin.com/wodasedapo/edit?html,css,output

I could reproduce the issue but i need a table expert to look into this. I created an internal incident to inform the colleagues: 1570831899

They will get back to you here as soon as they have analyzed the issue into more detail.

Thank you & Kind Regards,

Michael

Michadelic avatar Nov 24 '15 10:11 Michadelic

Hello mkueng1, this issue has been solved and the fix is available in master (1.37-SNAPSHOT), 1.36.2 and 1.34.6. Thanks and regards, Wenqian

awui avatar Feb 09 '16 12:02 awui