Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Collapse Element on Window Scroll event?

$
0
0

Hi

 

I am trying to implement a functionality wherein:

 

I have  a page with multiple panels. I have made the panels expand and collapse enabled.

 

When I scroll my page, I would like to be able to collapse the panel, which goes out of scope.

 

I tried to apply the logic of reducing the height of the panel for doing this. However, since it needs window.scrollTop to generate the condition to collapse or expand the pane, based on the position of the scroll, it is impossible at the moment.

 

I found that we cannot use the window.scrollTop() functionality on SAPUI5 controls. It always ends up gving a 0 value.

Is there any other way to implement this?

 

 

Can someone please guide me on this??

 

Here is an example of what I am trying to achieve in SAPUI5. Please help!

 

Edit fiddle - JSFiddle


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>