Skip to content
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

strange behaviour of font size on android pad #113

Open
LarsRabe opened this issue Jan 3, 2023 · 8 comments
Open

strange behaviour of font size on android pad #113

LarsRabe opened this issue Jan 3, 2023 · 8 comments
Labels
cannot reproduce Cannot recreate the error

Comments

@LarsRabe
Copy link

LarsRabe commented Jan 3, 2023

Hello Carmen,

on my android pad using it in landscape orientation the font size behaves strangly:
font-size
In this screenshot from my computer all the lines have the same font size (as it should be). What happens on my android device using the landscape orienation is, that all the lines, apart from the first one, are showing a larger font size. If I manually scroll down, the font size of all lines normalize to normal font size. The same effect is also there, when I use the "follow x.x" link (not scrolling down). It does NOT happen holding my pad in portrait orientation.

Do you have a explanation?

@JustCarmen
Copy link
Owner

I cannot reproduce this. Is it possible that the page wasn't fully loaded?

@LarsRabe
Copy link
Author

LarsRabe commented Jan 6, 2023

I cannot reproduce this. Is it possible that the page wasn't fully loaded?
It looks like it was fully uploaded. I can reproduce this on 3 different pads, but not on android phones in landscape orientation.

Don't get it either

@JustCarmen
Copy link
Owner

Can you place a screenshot of the issue?

@JustCarmen JustCarmen added the cannot reproduce Cannot recreate the error label Jan 7, 2023
@LarsRabe
Copy link
Author

LarsRabe commented Jan 8, 2023

Hi Carmen,

Two screenshots. As you can see, the first line (sentence) has a normal font size. The next lines (sentences) do have a larger font size.
Screenshot_20230108_141832_com android chrome

Screenshot_20230108_142002_com android chrome

@JustCarmen
Copy link
Owner

I've looked into this once again, but I can't think of anything that can cause this behavior. I don't use a special font size in the module. All text is wrapped in a paragraph tag, but that also counts for the first paragraph which is not enlarged.

Can you reproduce this behavior with the webtrees theme? If you disable all custom modules, except Fancy Treeview of course, do you have the same situation?

@LarsRabe
Copy link
Author

Hello Carmen, it's the same if I use the webtrees theme. Also disabling custom modules doesn't change anything. And of course I deleted the browser cache on trying. :-) I try 2 other tablets and a ipad tomorrow at work. The 3 tablets in my household all show this behaviour. In addition I'll try some other browsers too.

@JustCarmen
Copy link
Owner

I might have found something:

https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/

https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust

I still cannot reproduce it on my own Android tablet, also tried a Chromebook and a mobile device simulator without any luck.

So I need your help to solve this. Would you please add the following css to the upper textblock of the css-and-js module:

<style> html { -moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none; } </style>

Let me know if it makes any difference.

@LarsRabe
Copy link
Author

LarsRabe commented Mar 1, 2023

I think you're on something there. Initially it seems to have no effect, but...
now, if I scroll down, after a short moment the font size adapts to the right size. So it definitely changed the behaviour.

I'm not 100 % sure it's the scrolling down. It seems sometimes if tapping on the tablet triggers it also.

Further more I tested a ipad today. There the behaviour doesn't show. On two other android tablets at work, the behaviour is showing as on my household tablets. In all cases I was using the Chrome browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot reproduce Cannot recreate the error
Projects
None yet
Development

No branches or pull requests

2 participants