diff --git a/gajim/chat_control_base.py b/gajim/chat_control_base.py
index b37ef220b..95fdd13da 100644
--- a/gajim/chat_control_base.py
+++ b/gajim/chat_control_base.py
@@ -318,12 +318,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
# add MessageTextView to UI and connect signals
self.msg_textview = MessageTextView()
-
self.msg_scrolledwindow = ScrolledWindow()
- self.msg_scrolledwindow.set_max_content_height(100)
- self.msg_scrolledwindow.set_propagate_natural_height(True)
- self.msg_scrolledwindow.get_style_context().add_class('scrolledtextview')
- self.msg_scrolledwindow.set_property('shadow_type', Gtk.ShadowType.IN)
self.msg_scrolledwindow.add(self.msg_textview)
hbox = self.xml.get_object('hbox')
@@ -1345,6 +1340,14 @@ class ScrolledWindow(Gtk.ScrolledWindow):
def __init__(self, *args, **kwargs):
Gtk.ScrolledWindow.__init__(self, *args, **kwargs)
+ self.set_overlay_scrolling(False)
+ self.set_max_content_height(100)
+ self.set_propagate_natural_height(True)
+ self.get_style_context().add_class('scrolled-no-border')
+ self.get_style_context().add_class('no-scroll-indicator')
+ self.get_style_context().add_class('scrollbar-style')
+ self.set_shadow_type(Gtk.ShadowType.IN)
+
def do_get_preferred_height(self):
min_height, natural_height = Gtk.ScrolledWindow.do_get_preferred_height(self)
child = self.get_child()
diff --git a/gajim/data/gui/chat_control.ui b/gajim/data/gui/chat_control.ui
index d750c9ac8..5bf3e2303 100644
--- a/gajim/data/gui/chat_control.ui
+++ b/gajim/data/gui/chat_control.ui
@@ -591,11 +591,14 @@
60
True
in
+ False
diff --git a/gajim/data/gui/groupchat_control.ui b/gajim/data/gui/groupchat_control.ui
index 1023c2d91..6115478e9 100644
--- a/gajim/data/gui/groupchat_control.ui
+++ b/gajim/data/gui/groupchat_control.ui
@@ -186,11 +186,14 @@
True
True
in
+ False
@@ -356,6 +359,7 @@
True
True
4
+ 5
never
in
@@ -371,6 +375,7 @@
diff --git a/gajim/data/style/gajim.css b/gajim/data/style/gajim.css
index 9bd7884d0..8eb7ba360 100644
--- a/gajim/data/style/gajim.css
+++ b/gajim/data/style/gajim.css
@@ -8,7 +8,9 @@
}
.scrolled-no-border {border: none}
-.scrolled-no-border undershoot.top, undershoot.bottom { background-image: none; }
+.no-scroll-indicator undershoot.top, undershoot.bottom { background-image: none; }
+.scrollbar-style scrollbar trough {background-color:@theme_base_color; }
+.scrollbar-style scrollbar {border:none; }
.actionbar-no-border box {border: none}
@@ -21,8 +23,6 @@
#MessageWindow, #RosterWindow paned { background-color: @theme_base_color; }
-.scrolledtextview { border:none; }
-
.chatcontrol-separator-top {margin-top: 5px;}
.chatcontrol-separator {margin-bottom: 5px;}