Skip to Content
-1
Former Member
May 05, 2017 at 09:48 AM

How to enable permanent horizontal scrollbar (like in SAPUI5 explored example)

5890 Views

Hello Experts,

I am pretty new in SAPUI5 developing and at the moment I am facing a problem with horizontal scrollbar behavior.

At the moment I implemented a Grid Layout followed by a Scroll Container and a Table with 17 columns. As the table is too wide for low resolution displays I need a horizontal scrollbar to make all content accessible for the users.

By implementing the Scroll Container a horizontal scrollbar appears at the very end of the screen. However the user has to scroll all the way down in order to scroll horizontally.

I am looking for a solution, where the horizontal scrollbar is displayed permanently if the display resolution is not high enough. A good example for my desired behavior is the table sample (grid table) shown at SAPUI5 Explored.

https://sapui5.hana.ondemand.com/explored.html#/sample/sap.ui.table.sample.Basic/preview

To get a better understanding of my current implementation you will find code extraction attached.

horizontal-scrolling-example.txt

Any hints how I could solve this issue smoothely?

Greetings,

Sebastian.

Attachments