[gnome-shell/wip/paging-release: 49/90] testing
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/paging-release: 49/90] testing
- Date: Mon, 12 Aug 2013 17:07:20 +0000 (UTC)
commit a884dbd70321a68d4b7f749649a04b9810d9c23c
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Mon Jul 15 13:28:22 2013 +0200
testing
data/theme/gnome-shell.css | 2 +-
js/ui/iconGrid.js | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 3cf8f49..f3cd83a 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -902,7 +902,7 @@ StScrollBar StButton#vhandle:active {
.all-apps,
.frequent-apps {
/* horizontal padding to make sure scrollbars or dash don't overlap content */
- padding: 0px 88px;
+ padding: 8px 88px;
}
.pages-indicator {
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 8679f37..b19dc27 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -277,10 +277,15 @@ const IconGrid = new Lang.Class({
_allocate: function (grid, box, flags) {
if(this._fillParent) {
+ global.log("First box " + [box.x1, box.x2]);
// Reset the passed in box to fill the parent
+ this.actor.get_parent().ensure_style();
let parentBox = this.actor.get_parent().allocation;
+ parentBox = this.actor.get_theme_node().get_content_box(parentBox);
+ global.log("PArentbox " + [parentBox.x1, parentBox.x2]);
let gridBox = this.actor.get_theme_node().get_content_box(parentBox);
box = this._grid.get_theme_node().get_content_box(gridBox);
+ global.log("final box " + [box.x1, box.x2]);
}
let children = this._getVisibleChildren();
@@ -307,10 +312,10 @@ const IconGrid = new Lang.Class({
if(oldNPages != this._nPages) {
global.log("Next relayout");
this.emit('n-pages-changed', this._nPages);
- /*Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
+ Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
this._grid.queue_relayout();
return false;
- }));*/
+ }));
}
}
let leftPadding;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]