notification: Remove scrollTo hack

Remove the hack from Notification.scrollTo because it is unreliable,
the caller should make sure to call scrollTo when it will actually
have the desired effect.

https://bugzilla.gnome.org/show_bug.cgi?id=614977
This commit is contained in:
Adel Gadllah 2011-03-09 14:00:25 +01:00
parent f8b44cd30e
commit dc2cae07b2

View File

@ -571,11 +571,6 @@ Notification.prototype = {
// //
// Scrolls the content area (if scrollable) to the indicated edge // Scrolls the content area (if scrollable) to the indicated edge
scrollTo: function(side) { scrollTo: function(side) {
// Hack to force a relayout, since the caller probably
// just added or removed something to scrollArea, and
// the adjustment needs to reflect that.
global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, 0, 0);
let adjustment = this._scrollArea.vscroll.adjustment; let adjustment = this._scrollArea.vscroll.adjustment;
if (side == St.Side.TOP) if (side == St.Side.TOP)
adjustment.value = adjustment.lower; adjustment.value = adjustment.lower;