! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
buttons don't maintain their width-height ratio when panal resizes
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-panel

Comments

Description Ori Avtalion 2007-05-23 10:56:03 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)
Build Identifier: 

I have a launcher button that uses a 128x128 PNG image as an icon.
When the button is alone in the panel, resizing the panel makes the button resize and keep its proportions.

When I add a "quit" action button, I see the follwing behavior:
(I have nothing else on the panel)

* When the panel size is about 29px, both buttons are as square as the icon.

* When the panel size is above 29px, the quit button loses its square shape and its width is usually smaller than its height.

* When the panel size is smaller than 29px, the first button loses its square shape and its width is usually smaller than its height

This causes icons to be needlessly squashed, and not be as tall as the panel.

Reproducible: Always

Steps to Reproduce:
1. Create a new panel
2. Add a launcher button with an icon sized 128x128.
3. Add an "Action Buttons" applet and display the "quit" button
4. resize the panel




See attached screenshot.
Comment 1 Ori Avtalion 2007-05-23 10:58:00 CEST
Created attachment 1152 
Screenshot of the problem
Comment 2 Jasper Huijsmans editbugs 2007-06-03 11:59:24 CEST
This is by design, more or less. The action buttons are smaller. They should be about half the size of a launcher on a large panel. On a smaller panel they will have a minimum size.

It could be changed, I guess. I don't think it will be a high priority for me, though.
Comment 3 Nick Schermer editbugs 2007-06-03 12:49:39 CEST
MM I changed this code lately, maybe I need to take a look again.
Comment 4 Nick Schermer editbugs 2010-02-27 15:08:57 CET
Devel branch has been merged in master. A 4.7.0 release will follow soon. If you think this bug is not fixed? Feel free to reopen the bug.

Bug #3273

Reported by:
Ori Avtalion
Reported on: 2007-05-23
Last modified on: 2010-02-27

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Attachments

Screenshot of the problem (12.63 KB, image/png)
2007-05-23 10:58 CEST , Ori Avtalion
no flags

Additional information