[gnome-shell/wip/paging-release: 67/90] Fixed bad collection view width on small resolutions due to the padding and close button of the popu



commit 92b82fa37fc24cc759ae66bb03032161a221eb67
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Sat Jul 20 21:44:18 2013 +0200

    Fixed bad collection view width on small resolutions due to the padding
    and close button of the popup

 data/theme/gnome-shell.css |    2 +-
 js/ui/appDisplay.js        |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 5dc763d..be7e241 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -909,7 +909,7 @@ StScrollBar StButton#vhandle:active {
 }
 
 .pages-indicator {
-       spacing: 30px;
+       spacing: 50px;
 }
 
 .app-folder-icon {
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index e808720..69c86f6 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1239,6 +1239,7 @@ const FolderView = new Lang.Class({
     usedWidth: function() {
         let box = this._containerBox();
         let availWidthPerPage = box.x2 - box.x1;
+        availWidthPerPage -= this._boxPointerOffsets['padding'] * 2 + 
this._boxPointerOffsets['closeButtonOverlap'];
         let maxUsedWidth = this._grid.usedWidth(availWidthPerPage);
         return maxUsedWidth;
     },


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