Reliable method to remove scroll bars?

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Reliable method to remove scroll bars?

Postby bms20 » Sun Sep 17, 2017 2:02 pm

Hi there,

I'm looking for a reliable method to remove scroll bars from displayed web pages.

I have tried to use the frame->ExecuteJavaScript(...) method in both the OnLoadStart and OnLoadEnd callbacks, and I execute this:

document.body.style.overflow="hidden";

I've found that this works for some web pages, but fails for many others.

I have tried numerous other snippets I found on the web - namely the ones adding a style element to the document ... to no avail.

Can you guys offer any advice?

Thanks!
bms20
Newbie
 
Posts: 2
Joined: Fri Sep 15, 2017 11:50 pm

Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 25 guests