[gnome-shell] Fix the amount of fitting elements calculation in the OverflowList
- From: Siegfried-Angel Gevatter Pujals <sgevatter src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix the amount of fitting elements calculation in the OverflowList
- Date: Sun, 2 Aug 2009 18:07:37 +0000 (UTC)
commit 0b801a0d2dcecb77334433a604a26f1f202d10b9
Author: Siegfried-Angel Gevatter Pujals <rainct ubuntu com>
Date: Sun Aug 2 20:06:32 2009 +0200
Fix the amount of fitting elements calculation in the OverflowList
Before this in certain conditions (depending on the available
height) two items could be drawn in the same position. Bug #590278.
src/shell-overflow-list.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-overflow-list.c b/src/shell-overflow-list.c
index 8565a33..77da1ad 100644
--- a/src/shell-overflow-list.c
+++ b/src/shell-overflow-list.c
@@ -147,6 +147,9 @@ shell_overflow_list_allocate (ClutterActor *actor,
ClutterActor *actor = CLUTTER_ACTOR (iter->data);
ClutterActorBox child_box;
+ if (iter != children)
+ curheight += priv->spacing;
+
if ((curheight + priv->item_height) > avail_height)
{
overflow = TRUE;
@@ -163,8 +166,6 @@ shell_overflow_list_allocate (ClutterActor *actor,
clutter_actor_allocate (actor, &child_box, flags);
curheight += priv->item_height;
- if (iter != children)
- curheight += priv->spacing;
}
priv->items_per_page = n_fits;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]