diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 843848084..7a0a9883e 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1432,6 +1432,10 @@ StScrollBar StButton#vhandle:active { padding-right: 4px; } +.chat-notification-scrollview{ + max-height: 22em; +} + .subscription-message { font-style: italic; } diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index 4268253c4..281a6066e 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -779,6 +779,7 @@ const ChatNotification = new Lang.Class({ // force a scroll to the bottom if things change while we were at the // bottom this._oldMaxScrollValue = this._scrollArea.vscroll.adjustment.value; + this._scrollArea.add_style_class_name('chat-notification-scrollview'); this._scrollArea.vscroll.adjustment.connect('changed', Lang.bind(this, function(adjustment) { if (adjustment.value == this._oldMaxScrollValue) this.scrollTo(St.Side.BOTTOM);