[gnome-shell] dnd: Set the scale on the drag actor
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dnd: Set the scale on the drag actor
- Date: Mon, 8 Apr 2013 18:58:08 +0000 (UTC)
commit 5e6a25c3c271c955c7ed84ced4d9d7cbddd7f2c1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Apr 7 14:56:46 2013 -0400
dnd: Set the scale on the drag actor
The actor is the same as the drag actor in this case, but we tend to
set properties on the drag actor and get them from the actor elsewhere
in this codepath. Make this consistent.
https://bugzilla.gnome.org/show_bug.cgi?id=697504
js/ui/dnd.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 4a61cd1..1841f49 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -302,8 +302,8 @@ const _Draggable = new Lang.Class({
// Set the actor's scale such that it will keep the same
// transformed size when it's reparented to the uiGroup
let [scaledWidth, scaledHeight] = this.actor.get_transformed_size();
- this.actor.set_scale(scaledWidth / this.actor.width,
- scaledHeight / this.actor.height);
+ this._dragActor.set_scale(scaledWidth / this.actor.width,
+ scaledHeight / this.actor.height);
}
this._dragOrigOpacity = this._dragActor.opacity;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]