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 529031 - auto_hide_size works only up to half of panel's size
auto_hide_size works only up to half of panel's size
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
2.22.x
Other All
: Normal minor
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-20 12:50 UTC by Sebastian Spieszko
Modified: 2008-08-15 02:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Image shows effects of setting to auto_hide_size at value larger than half of size value. (382.44 KB, image/jpeg)
2008-04-20 12:54 UTC, Sebastian Spieszko
  Details
Patch allows auto_hide_size be larger than half of panel's height (537 bytes, patch)
2008-06-22 23:02 UTC, Sebastian Spieszko
rejected Details | Review

Description Sebastian Spieszko 2008-04-20 12:50:31 UTC
Please describe the problem:
If auto_hide_size key value is more than half of panel's size value, then visible part of hidden panel has exactly half of panel's size pixels, but maximized windows doesn't touch this hidden panel.

Steps to reproduce:
1. Open gconf-editor and head to panel's path
2. Set autohide on, panel's size at 48 and auto_hide_size at 36 (which is more than 1/2 * 48 = 24)
3. Maximize any window


Actual results:
You can see free space (12px height) betweeen maximized window and hidden panel.

Expected results:
I expect the visible part of hidden panel to have auto_hide_size pixels and no free space between panel and maximized windows.

Does this happen every time?
Yes, it does.

Other information:
This problem also exists at GNOME 2.22.1.
I do own screenshot, but don't know yet how to attach. You can find it at http://img.wklej.org/images/13010gnome_panel_autohidesize.jpg
Comment 1 Sebastian Spieszko 2008-04-20 12:54:42 UTC
Created attachment 109577 [details]
Image shows effects of setting to auto_hide_size at value larger than half of size value.

This image shows exactly, what is the problem.
Comment 2 Sebastian Spieszko 2008-06-22 23:02:41 UTC
Created attachment 113228 [details] [review]
Patch allows auto_hide_size be larger than half of panel's height

Untested!
Comment 3 Vincent Untz 2008-08-04 03:09:18 UTC
I fixed it another way.

2008-08-04  Vincent Untz  <vuntz@gnome.org>

	* panel-toplevel.c: (panel_toplevel_update_struts): remove the special
	case for auto-hidden panels. We just update the struts as if they were
	normal panels, with their current position.
	This changes a bit the behavior (ie, full-screen windows resize when
	the panel gets unhidden and then hidden again), but after playing with
	it, I think the new behavior is actually quite nice. If we revert the
	change, then we'll have to fix bug #529031 by clamping auto_hide_size,
	like we do in panel_toplevel_update_auto_hide_position().
	Fix bug #529031.
Comment 4 klange 2008-08-11 03:16:18 UTC
(In reply to comment #3)
> I fixed it another way.
> 
> 2008-08-04  Vincent Untz  <vuntz@gnome.org>
> 
>         * panel-toplevel.c: (panel_toplevel_update_struts): remove the special
>         case for auto-hidden panels. We just update the struts as if they were
>         normal panels, with their current position.
>         This changes a bit the behavior (ie, full-screen windows resize when
>         the panel gets unhidden and then hidden again), but after playing with
>         it, I think the new behavior is actually quite nice. If we revert the
>         change, then we'll have to fix bug #529031 by clamping auto_hide_size,
>         like we do in panel_toplevel_update_auto_hide_position().
>         Fix bug #529031.
> 

That's not a fix, that's avoiding the problem.
Comment 5 Vincent Untz 2008-08-11 13:01:46 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > I fixed it another way.
> > 
> > 2008-08-04  Vincent Untz  <vuntz@gnome.org>
> > 
> >         * panel-toplevel.c: (panel_toplevel_update_struts): remove the special
> >         case for auto-hidden panels. We just update the struts as if they were
> >         normal panels, with their current position.
> >         This changes a bit the behavior (ie, full-screen windows resize when
> >         the panel gets unhidden and then hidden again), but after playing with
> >         it, I think the new behavior is actually quite nice. If we revert the
> >         change, then we'll have to fix bug #529031 by clamping auto_hide_size,
> >         like we do in panel_toplevel_update_auto_hide_position().
> >         Fix bug #529031.
> > 
> 
> That's not a fix, that's avoiding the problem.

If you read the ChangeLog entry, you'll notice the "if we revert [...], then we'll have to fix bug #529031..."

Anyway. I guess your comment meant that you dislike the new behavior. And we can indeed revert it (although I can't do it now because I'm travelling).
Comment 6 Matthias Clasen 2008-08-15 02:21:13 UTC
I strongly dislike the new behaviour too. We are getting Fedora bugs about it already...
Comment 7 Matthias Clasen 2008-08-15 02:28:13 UTC
In case it isn't clear: the 'new behaviour' I mean is that not only windows are jumping up and down to the tune of the hiding/unhiding panel, but desktop icons in nautilus are too.