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 686944 - Overview - unmaximized windows can be taller than maximized ones
Overview - unmaximized windows can be taller than maximized ones
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-10-26 13:57 UTC by Allan Day
Modified: 2013-01-24 20:20 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
screenshot (562.79 KB, image/png)
2012-10-26 13:57 UTC, Allan Day
  Details
workspace: Use a better algorithm for computing individual thumbnail scale (2.02 KB, patch)
2012-10-26 19:29 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
workspace: Use a better algorithm for computing individual thumbnail scale (2.06 KB, patch)
2012-10-28 02:48 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
workspace: Clamp individual maximized scales to WINDOW_CLONE_MAXIMUM_SCALE (3.58 KB, patch)
2012-10-28 02:59 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
workspace: Use a better algorithm for computing individual thumbnail scale (2.06 KB, patch)
2012-10-28 02:59 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Allan Day 2012-10-26 13:57:47 UTC
Created attachment 227361 [details]
screenshot

See the screenshot - the non-maximized window is taller than the maximized one.
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-10-26 19:29:35 UTC
Created attachment 227385 [details] [review]
workspace: Use a better algorithm for computing individual thumbnail scale

The one we had before could make unmaximized windows appear to be bigger
than maximized ones, for a few reasons. Ensure that this doesn't happen
again, and add some comments to explain the whys and needs for twiddling
the individual thumbnail size.
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-10-28 02:48:55 UTC
Created attachment 227435 [details] [review]
workspace: Use a better algorithm for computing individual thumbnail scale

The one we had before could make unmaximized windows appear to be bigger
than maximized ones, for a few reasons. Ensure that this doesn't happen
again, and add some comments to explain the whys and needs for twiddling
the individual thumbnail size.



This should fix some weird issues with the overview some people were having.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-10-28 02:59:31 UTC
Created attachment 227436 [details] [review]
workspace: Clamp individual maximized scales to WINDOW_CLONE_MAXIMUM_SCALE

We clamp the overall layout's scale to WINDOW_CLONE_MAXIMUM_SCALE, but since
we do a bit of tweaking to try and make super small windows a tad larger, it's
theoretically possible that windows may become larger than the proper maximum
scale. Fix this issue.



Seems I forgot to attach both patches.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-10-28 02:59:35 UTC
Created attachment 227437 [details] [review]
workspace: Use a better algorithm for computing individual thumbnail scale

The one we had before could make unmaximized windows appear to be bigger
than maximized ones, for a few reasons. Ensure that this doesn't happen
again, and add some comments to explain the whys and needs for twiddling
the individual thumbnail size.
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-10-31 14:23:23 UTC
Florian, can you review this one?
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-11-12 01:47:19 UTC
Ping again? This would be nice for 3.6.2
Comment 7 Florian Müllner 2012-11-12 07:23:39 UTC
Uh? The patches are based on the 3.7 overview layout changes, so how is that relevant for 3.6.2?
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-11-12 07:40:20 UTC
Oh, I thought I landed the overview relayout for the gnome-3-6 branch, but I guess I was mistaken.
Comment 9 Allan Day 2012-12-13 21:49:57 UTC
I am still seeing this bug. The attached patches seem to successfully resolve the issue.
Comment 10 Cosimo Cecchi 2012-12-14 20:02:23 UTC
Review of attachment 227436 [details] [review]:

[ Jasper asked me to take a look at these ]

I don't really understand why you can't limit the scale to its maximum value unconditionally.

::: js/ui/workspace.js
@@ +720,2 @@
     // base scale, @scale.
+    _computeWindowScale: function(window) {

The scale argument shouldn't be removed here.

@@ +815,3 @@
+                s = Math.min(s, WINDOW_CLONE_MAXIMUM_SCALE);
+                let width = window.actor.width * s;
+                let height = window.actor.height * s;

I don't think returning a single value from _computeWindowScale() makes the code particularly cleaner here.
Can't you do the Math.min() inside _computeWindowScale() directly?
Comment 11 Cosimo Cecchi 2012-12-14 20:06:34 UTC
Review of attachment 227437 [details] [review]:

LGTM
Comment 12 Allan Day 2013-01-15 10:14:08 UTC
Ping
Comment 13 Jasper St. Pierre (not reading bugmail) 2013-01-24 20:20:06 UTC
Attachment 227436 [details] pushed as 7ba0f07 - workspace: Clamp individual maximized scales to WINDOW_CLONE_MAXIMUM_SCALE
Attachment 227437 [details] pushed as ef69c22 - workspace: Use a better algorithm for computing individual thumbnail scale