Skip to Content
0
May 24, 2016 at 05:19 PM

sap.m.scrollcontainer size

1038 Views

I have a sap.m.page with the following content:

Header with sap.m.bar ( contains title / and other informationes )

beneath it a sap.m.panel with customer informations / expandable

then an icontabbar with some filters.

Under the iconttabbar i have a scrollcontainer with an sap.m.table.

The problem is the size of the sap.m.scrollcontainer.

Under the scrollcontainer is footer with a sap.m.bar.

If i give it the wrong size i dont get a scrollbar and the requirement is to adjust the size of the scrollcontainer depending on if the panel is expanded

or not.

So the problem is to determine the place between the iconttabbar and the footer.

I know there is sap.ui.Device.resize.height to get the available height for the sap.m.page.

But i dont know how to get the size of the different controls.

Is there any way to calculate this?

Or is there another way to determine right size for scrollcontainer?

Regards

Dirk