After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 644542 - workspaceView: Make sure to scale the workspace proportionally
workspaceView: Make sure to scale the workspace proportionally
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Florian Müllner
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-12 00:48 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2011-03-15 18:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
workspaceView: Make sure to scale the workspace proportionally (1.46 KB, patch)
2011-03-12 00:48 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-03-12 00:48:18 UTC
.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-03-12 00:48:20 UTC
Created attachment 183190 [details] [review]
workspaceView: Make sure to scale the workspace proportionally

Commit 0207f1f29b776ae5f8f59321284f1adc2f85159e landed a new
way of zooming, but was causing all sorts of window positioning
weirdness because the positions were supposed to be working against
a proportional workspace.
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-03-12 00:49:37 UTC
tagging ui-review per fmuellner's request
Comment 3 Owen Taylor 2011-03-14 20:40:50 UTC
The ui-review issue here, if I remember the IRC conversation was:

 - Before the recent refactoring, the behavior when the sidebar slid out is that the entire workspace area shrunk, windows and all. This was the behavior in jimmac's mockup.

 - The current behavior is that the windows push together but don't rescale. There might be some issues with the details of the behavior - X and Y not changing the same, or windows overlapping, but that's secondary to the overall behavior.
Comment 4 Jakub Steiner 2011-03-14 21:04:40 UTC
I'm not quite sure where the need to avoid the scaling comes from. This design is consistent with making room for the context menu of all dash launchers. It was a mean to avoid overlaying the menu on top of the window thumbnails*, possibly preventing selecting one of them. I don't think there is a way to use the same 'compacting' solution there as well, as the menu is wider. 

In general I don't see fluid scale down of the window thumbnails as an issue.

* http://git.gnome.org/browse/gnome-shell-design/plain/mockups/static/overview-window-picker-context-menu-pushes-windows-away.png
Comment 5 Florian Müllner 2011-03-15 13:59:54 UTC
Review of attachment 183190 [details] [review]:

I'd like to suggest a small modification for clarity, otherwise the code looks good to commit.

::: js/ui/workspacesView.js
@@ +710,3 @@
 
+        let fullWidth = width;
+        let fullHeight = height;

In my opinion it reads more clearly if you reverse the above, e.g.

let fullWidth = this.actor.allocation.x2 ...
let fullHeight = ...

let width = fullWidth;
let height = fullHeight;
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-03-15 18:05:49 UTC
Attachment 183190 [details] pushed as a9505d0 - workspaceView: Make sure to scale the workspace proportionally