-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer delay text cut off #1430
Comments
I agree that it would be nice if it didn't cut off, but why would you want to work with such a big buffer? |
if I simply add 2 spaces after the text, it works for some reason. But I'm not sure if that is a good workaround: diff --git a/src/clientsettingsdlg.cpp b/src/clientsettingsdlg.cpp
index 87638faa..0ac032d0 100755
--- a/src/clientsettingsdlg.cpp
+++ b/src/clientsettingsdlg.cpp
@@ -550,7 +550,7 @@ void CClientSettingsDlg::UpdateSoundCardFrame()
{
// special title text with buffer size information added
grbSoundCrdBufDelay->setTitle ( tr ( "Buffer Delay: " ) +
- GenSndCrdBufferDelayString ( iCurActualBufSize ) );
+ GenSndCrdBufferDelayString ( iCurActualBufSize ) + " " );
}
}
|
@djfun Couldd you please open a Pull Request if this issue wasn't resolved? |
When choosing a non-predefined buffer delay, the text is cut off. Appending 2 space characters seems to fix the problem. Fixes jamulussoftware#1430 Signed-off-by: Martin Kaistra <[email protected]>
Problem seems to still exist on current master, I opened a pull request. |
I don't like the idea of the fix. It sounds like the styling in the form is wrong: the field should accurately resize to the content. |
When choosing a non-predefined buffer delay, the text is cut off. Appending 2 space characters seems to fix the problem. Fixes jamulussoftware#1430 Signed-off-by: Martin Kaistra <[email protected]>
I had another quick look but don't see anything wrong in our Qt widget/styling usage around grbSoundCrdBufDelay and its title (which is where this information is placed). @djfun Can you confirm if you're still running Ubuntu 20.10 as noted in the initial report? 20.10 is no longer supported (by Ubuntu upstream), so if this is not any known issue on a supported platform I'd say we should not introduce workarounds which -- to me -- "only" sounds like a small UI glitch. |
I am now using Ubuntu 21.10 (the newest version). Like I wrote in the pull request: maybe the problem only exists with the default font (Ubuntu Regular).. |
You can change that probably? |
I can change the font for testing, yes. But I don't want to check 100+ fonts to see if there is another one with the same issue. |
Certainly not. It’s just to ensure that you’re right on the thought that it’s the font misbehaving. |
I spent some more time debugging this and was able to reproduce this issue on Ubuntu 21.10.
Therefore, I suspect that this is a character width mis-calculation between Qt and the Ubuntu font (maybe rather on the Qt side as Qt6 seems unaffected). |
Hi, There are three builds here Thanks, -- Peter |
I've tagged this "tooling" because it's fixed by updating the Qt version. We should be building for Qt LTS-1 across all supported platforms. |
Describe the bug
When choosing a buffer delay that is different from the predefined 64, 128 or 256, the text is cut off.
To Reproduce
On linux: start Jack with buffer size 1024
jackd -d dummy -p 1024
Start jamulus and open the settings window
Observe the cut off closing parenthesis.
Expected behavior
Text should not get cut off
Screenshots
Operating system
Ubuntu 20.10
Version of Jamulus
both 3.7.0 and latest master
Additional context
Seems to happen independent from the selected UI language.
The text was updated successfully, but these errors were encountered: