[gnome-shell] dash: Take remove target into account for icon size



commit a0584b9c300c00a5c70cb37ab2540cded4e9170b
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Dec 16 22:13:47 2010 +0100

    dash: Take remove target into account for icon size
    
    Previously the icon size was only adjusted due to changes in the list
    of application icons displayed, not when showing or hiding the remove
    target. As a result, the remove target could end up cut off, so take
    this case into account and adjust the icon size when showing or hiding
    the remove target.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636156

 js/ui/dash.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 9813372..8b419e9 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -140,6 +140,7 @@ Dash.prototype = {
         this._clearDragPlaceholder();
         if (this._favRemoveTarget) {
             this._favRemoveTarget.actor.destroy();
+            this._adjustIconSize();
             this._favRemoveTarget = null;
         }
         DND.removeMonitor(this._dragMonitor);
@@ -164,6 +165,7 @@ Dash.prototype = {
                 this._favRemoveTarget = new RemoveFavoriteIcon();
                 this._favRemoveTarget.icon.setIconSize(this._iconSize);
                 this._box.add(this._favRemoveTarget.actor);
+                this._adjustIconSize();
         }
 
         let favRemoveHovered = false;



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