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



commit 0baf9a8e73931ea2142ea3eeede14f5e48b0c7b9
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 e370f47..b7c6742 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 cc7a456..eb47287 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1249,6 +1249,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]