Skip to Content
Mar 23, 2015 at 12:05 PM

Issue with table resizing (JavaScript error)



I have problem with an empty table ( sap.ui.table.Table ) ("no Data" is displayed) that's embedded in a tabstrip ( sap.ui.commons.TabStrip ) which is embedded in a panel ( sap.ui.commons.Panel ).

The width of the table is "100%" and columns have no fix width.

When I add a new tab (including a new table) to tabstrip I get the JavaScript error "Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined".

This happens because variable oHiddenElement is undefined in line 2115 of file "Table-dbg.js" (function "fnSyncColumnHeaders" in function "_updateColumnHeader"). Result of "this.$();" is an empty Array.

Is it possible to avoid this error?