[gnome-shell/T27795: 136/138] baseAppView: Update IconGridLayout when moving
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/T27795: 136/138] baseAppView: Update IconGridLayout when moving
- Date: Tue, 1 Oct 2019 23:40:46 +0000 (UTC)
commit bdc0d928e71010f30e8812f5fc846cf6af1f1ca0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Sep 30 23:36:09 2019 -0300
baseAppView: Update IconGridLayout when moving
js/ui/appDisplay.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 2e4debb245..0f68ef4014 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -244,6 +244,9 @@ class BaseAppView {
let realPosition = this._grid.moveItem(item, newPosition);
this._allItems.splice(realPosition, 0, item);
+ let targetId = visibleItems[realPosition].id;
+ IconGridLayout.layout.repositionIcon(item.id, targetId, this.id);
+
return realPosition;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]