Hide scrollbars via CSS.

This commit is contained in:
Florian Bruhin 2014-09-19 00:37:55 +02:00
parent 1bc5160453
commit 1eb9bb079c
2 changed files with 3 additions and 3 deletions

View File

@ -268,8 +268,9 @@ DATA = collections.OrderedDict([
"This will flatten all the frames to become one scrollable page."),
('user-stylesheet',
SettingValue(typ.UserStyleSheet(), ''),
"User stylesheet to use."),
SettingValue(typ.UserStyleSheet(),
'::-webkit-scrollbar { width: 0px; height: 0px; }'),
"User stylesheet to use (absolute filename or CSS string)."),
('css-media-type',
SettingValue(typ.String(none_ok=True), ''),

View File

@ -110,7 +110,6 @@ class WebView(QWebView):
self.page().networkAccessManager().sslErrors.connect(
lambda *args: setattr(self, '_has_ssl_errors', True))
self.viewing_source = False
# FIXME find some way to hide scrollbars without setScrollBarPolicy
def __repr__(self):
url = self.url().toDisplayString()