[polari] roomList: Don't hide the counter, just make it fully transparent



commit ab2b1932d2b3bc1dec71bcae3211a1b2a9205770
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 26 00:06:00 2013 +0200

    roomList: Don't hide the counter, just make it fully transparent
    
    We don't want the list to change size horizontally when a counter
    appears/disappears.

 src/roomList.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/roomList.js b/src/roomList.js
index baeea8c..462dacf 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -28,7 +28,7 @@ const RoomRow = new Lang.Class({
         let numPending = channel.dup_pending_messages().length;
 
         this._counter.label = numPending.toString();
-        this._counter.visible = numPending > 0;
+        this._counter.opacity = numPending > 0 ? 1. : 0.;
 
         this._updateLabel();
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]