! 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 !
dual-line output doesn't fit panel
Status:
RESOLVED: MOVED
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description fbsd 2017-11-20 22:04:50 CET
For users who set a panel height to less than the default, say to 22px, if the xfce4-battery-plugin's "Display time" or "Display power" options are selected, the second of the two lines shown does not fit in the display using the default font size.

A fix is to add the following to the Gtk 3.20 CSS (where it already sets the progressbar size):

    label { margin-top: -2px; margin-bottom: -3px; }

and to call gtk_style_context_add_provider() for each of the four labels battmon->charge, battmon->rtime, battmon->acfan and battmon->temp after they are created.  This does not break things for folk using the default panel size, or a larger panel size.
Comment 1 fbsd 2017-11-20 22:30:47 CET
Oh, should say that this problem happens on both FreeBSD and Ubuntu.
Comment 2 Git Bot editbugs 2020-05-22 23:09:17 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-battery-plugin/-/issues/11.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #14022

Reported by:
fbsd
Reported on: 2017-11-20
Last modified on: 2020-05-22

People

Assignee:
Xfce-Goodies Maintainers
CC List:
0 users

Version

Attachments

Additional information