Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SetVirtualscroll is false still showing scroll to above canvas div (Read 981 times)
reshma
Junior Member
**
Offline


I Love MindFusion!

Posts: 91
Joined: Jan 16th, 2018
SetVirtualscroll is false still showing scroll to above canvas div
Mar 9th, 2021 at 11:15am
Print Post  
I have one div above canvas and i put setvirtualscroll to false still scroll is showing for my div applied overflow auto automatically ,i have not applied auto still showing there scroll.

Please let me know you are also facing such kind of issue in version 3.5.2.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: SetVirtualscroll is false still showing scroll to above canvas div
Reply #1 - Mar 9th, 2021 at 12:01pm
Print Post  
Overflow = 'auto' is how scrolling works when you disable virtual scrolling, so calling setVirtualScroll(false) adds it to div's style. If you don't want that, just reset parentDiv.style.overflow = '' after calling setVirtualScroll.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint