Gnome Calculator number entry line unreadable

When I type in more than a few numbers, the display becomes unreadable because the number entry row is reduced in height.
Fedora 43Beta, Gnome Calculator v49.1

Have you tried that calculator in any mode except basic? There are a lot of options if you click on the drop arrow beside the Basic and that would assist in determining if this is related to basic mode only or something else.

I am on f43 and my calculator does not do what you displayed. Possibly stretching the display in width or height may affect what you see.

It applies in all the formats, Basic/Advanced etc except Conversion which is a completely different layout. It applies however big the window is. When I enter a large number of figures they disappear completely and only the scroll bar shows.

I tried with 20+ numbers of 3-5 digit length and the effect did not appear.

I’m not sure how that helps.

I guess I am suggesting that it may be a glitch in the installed version of the calculator. Either a reinstall or removal then install may be necessary to clear out what appears to be your issue.

I also have to ask how up-to-date your install is.
I have used my calculator repeatedly over the last few weeks, and at present I am fully up to date with f43 using dnf update --enablerepo updates-testing so that I have the many updates available but are being held until final release of f43 (possibly on Tuesday).

1 Like

It was only earlier this evening that I did an update using “Gnome Software”. I assume that would do the same thing.
I’ve now tried the RPM and both the original Flathub Flatpak and Fedora’s version. They all do the same thing.
Now I’ve done my bit by reporting it, so that it can be checked in case it affects other people, I’ll just switch to another bit of software.

Are you using a custom theme? The scroll is doesn’t seem like the default.

2 Likes

Notice that I used the --enablerepo updates-testing option in that command. I don’t know if gnome-software is able to do that (I use the cli only for updating, which means I use dnf5 while gnome software only uses dnf4, and that I am unfamiliar with all the options in the gui)

The calculator comes from the gnome-calculator package and

  1. can be removed with sudo dnf remove gnome-calculator
  2. can be installed with sudo dnf install gnome-calculator
  3. can be reinstalled with sudo dnf reinstall gnome-calculator

after perusing what is in the repos, the basic f43 fedora repo currently contains version 49.0.1 of that package, while the updates-testing repo contains version 49.1.1.
I have version 49.1 installed.
You can see what version is installed by opening up the calculator then click on the hamburger menu on the upper right and selecting “about calculator”

1 Like

I haven’t changed anything in Calculator preferences. I don’t think I’ve changed a Fedora theme if there is such a thing,

I was beginning to think it was my fault for messing about with the system, because I have widened the scrollbars in ~/config/gtk-4.0/gtk.css so I don’t have spend a couple of seconds trying to locate the pointer on them:

scrollbar, scrollbar slider {
background-color: #d3d3d3; /* Background color of the scrollbar track */
}

scrollbar slider {
background-color: #000000; /* Black color for the scrollbar thumb /
border-radius: 3px;       / Optional: Makes the scrollbar thumb rounded /
min-width: 10px;          / Adjusts the width of the scrollbar thumb */
min-height: 10px;         /* Adjusts the height for horizontal scrollbars */

}

scrollbar slider:hover {
background-color: #333333; /* Slightly lighter black for hover effect */
}

However, commenting out the min-height line doesn’t make any difference, and there is no problem with any other software I use, so I don’t think that’s it.

BTW
I never use a flatpak when the rpm is available and fully functional.

1 Like

If you go to Settings app → Accesibility you can select for scrollbars to be always visible.

1 Like

There is no “Settings app” there is a Settings Apps, but it has no “Accesibility”.

Not true.
It is accessible with a right click on the desktop in gnome, from the menu at the top right of the screen, or from the activities menu shown with the “super-A” key combo.
That screen then shows

and the “seeing” button gives this

2 Likes

Thanks! Also, one can also just search for “Accesibility” in Overview Search. Every Settings’ entry have it’s own .desktop file, making this possible.

Good idea! I set up a new user:

Settings>System>Users>Unlock>{password}Add User then enter the new user’s details.

Logged out, then in again as the new user and started “Gnome Calculator”. The data entry line was fine. So the problem is related to my user details.

Back using my own account I deleted ~/config/gtk-4.0/gtk.css and the problem still happens even after deleting it. Any idea of any other files/variables which might cause this?

ChatGPT suggested it might be related to a theme regression, whatever that means, and suggested among other things adding this to the style sheet:

entry, textview, text {
min-height: 1.2em;
padding-top: 2px;
padding-bottom: 2px;
}

and I reduced the slider height with:

min-height: 6px;         /* Adjusts the height for horizontal scrollbars */

That’s fixed it.

[edit] See proper solution below.

Solution on Gnome Discourse

Switching off “Always show scrollbars“ fixes it me.

2 Likes