You are not logged in.

#1 2021-03-05 11:09:55

AugustineC
Member
Registered: 2021-03-04
Posts: 12

[SOLVED] Textbox Compressed Bug with Chrome

Hi guys. I think I am experiencing a very wierd bug on Chrome which may be caused by GTK application misconfigurations.

As you can see in this screenshot: https://www.dropbox.com/s/s3ia7wd41zsys … 8.png?dl=0

In the arch forum personal details page, all text boxes are just compressed together. However, this is not caused by a very thin window. Instead, I am using full screen mode on a 16:9 screen. Also, the reason why it is wierd is that I have not yet experienced this bug on other websites.

The reason why I classify this problem to Chrome is that I have also noticed that the "find" text box is also collapsed (https://www.dropbox.com/s/oyn8iz5pdoog1 … 2.png?dl=0), as shown in this screenshot, which is very annoying.

Is this some kind of GTK configuration bug? Thanks in advance for providing any suggestions.

Last edited by AugustineC (2021-03-09 07:44:13)

Offline

#2 2021-03-05 14:57:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Textbox Compressed Bug with Chrome

The width of those boxes is constrained by the "size" and "maxlength" parameters rather than css.
Since you suspect gtk: which style do you use and does it happen w/ adwaita?

Online

#3 2021-03-05 16:22:23

AugustineC
Member
Registered: 2021-03-04
Posts: 12

Re: [SOLVED] Textbox Compressed Bug with Chrome

Hi seth,

Do you mean the GTK theme by word "style"? If so, I am using Mojave-Dark-Alt.

BTW, just as a clarification, the reason why I suspect GTK is that this problem appears after I changed some settings in GTK. More specifically, I changed the theme and some settings in /org/gnome/desktop/interface using dconf-editor, though I did not find any relevant field as you mentioned there.

Last edited by AugustineC (2021-03-05 16:23:31)

Offline

#4 2021-03-05 16:25:09

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Textbox Compressed Bug with Chrome

Do you mean the GTK theme by word "style"?

Yes.

I am using Mojave-Dark-Alt.

And does it happen w/ adwaita (gnome default theme)?

Online

#5 2021-03-05 16:29:52

AugustineC
Member
Registered: 2021-03-04
Posts: 12

Re: [SOLVED] Textbox Compressed Bug with Chrome

Sorry, I am not quite sure what is meant by "happen w/ adwaita (gnome default theme)".

Based on my understanding, it should not be. The two themes should be separated.

As I am now seeing in the dconf, the only theme field seeming to be related to default theme is teh "gtk-key-theme" which stands for "Gtk+ Keybinding Theme". The value of this field is set to default.

Last edited by AugustineC (2021-03-05 16:32:45)

Offline

#6 2021-03-05 16:44:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Textbox Compressed Bug with Chrome

https://wiki.archlinux.org/index.php/GTK#Themes

# quit chrome/chromium?
export GTK_THEME=Adwaita
chrome # or chromium?

It's important to launch chrome/chromium from the shell where you exported the theme variable.

Online

#7 2021-03-05 17:08:39

AugustineC
Member
Registered: 2021-03-04
Posts: 12

Re: [SOLVED] Textbox Compressed Bug with Chrome

Hi, I have used the following command, though it seems that the problem still persists.

Here is the screenshot: https://www.dropbox.com/s/64futiin9hd6n … t.png?dl=0

I am wondering if it is due to my wrong operation.

Offline

#8 2021-03-05 21:07:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Textbox Compressed Bug with Chrome

No, looks reasonable.

I changed the theme and some settings in /org/gnome/desktop/interface using dconf-editor

So, what if you undo those changes? Does chrome return to proper behavior?
Which settings in particular did you change and to what values?

Online

#9 2021-03-06 17:57:13

AugustineC
Member
Registered: 2021-03-04
Posts: 12

Re: [SOLVED] Textbox Compressed Bug with Chrome

Hi, my appologies for replying late.

I think that I have already undone all the actions, but the problem persists. Here is a screenshot of current interface settings.

https://www.dropbox.com/s/hgj7r78t706xh … t.png?dl=0

Would you please check to see if there is any mistake? Thanks very much.

Last edited by AugustineC (2021-03-06 17:57:42)

Offline

#10 2021-03-06 20:57:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Textbox Compressed Bug with Chrome

There's a leading dot before the default font?
Also the font name/size format is all over the place.
There's no size for the monospace font, a comma separated one for the default font and a blank separated for the document font key.

I have none of those keys and no idea which format is correct, but I'm pretty sure the leading "." is a typo and would simply try to remove all size values.
A quick google  suggests the format is like "Font Name 10" and no quotes attached to the value.

Online

#11 2021-03-07 09:15:50

AugustineC
Member
Registered: 2021-03-04
Posts: 12

Re: [SOLVED] Textbox Compressed Bug with Chrome

Hi, thanks very much for helping!

The problem is finally solved after I changing the default font to "Lucida Grande, 10".

The problem is associated with the dot before the font type, though I am still confused by this: there indeed is quite a few fonts which start with a dot in font management in system settings. Also, I have used those fonts starting with dot in other applications, and it works fine.

Offline

#12 2021-03-07 12:09:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Textbox Compressed Bug with Chrome

Just becase some™ fonts (really?) start their name with a dot doesn't mean you can randomly throw that in somewhere.
For font names, try

fc-list | grep some_pattern

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#13 2021-03-09 07:43:38

AugustineC
Member
Registered: 2021-03-04
Posts: 12

Re: [SOLVED] Textbox Compressed Bug with Chrome

Hi thanks for your reply! I will do that immediately.

Offline

Board footer

Powered by FluxBB