MessageTray: change height in chat notification to have more context.

https://bugzilla.gnome.org/show_bug.cgi?id=665255
This commit is contained in:
Carlos Soriano Sánchez 2012-11-05 00:06:47 +01:00 committed by Allan Day
parent 4fd690333a
commit 09b738045c
2 changed files with 5 additions and 0 deletions

View File

@ -1432,6 +1432,10 @@ StScrollBar StButton#vhandle:active {
padding-right: 4px;
}
.chat-notification-scrollview{
max-height: 22em;
}
.subscription-message {
font-style: italic;
}

View File

@ -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);