ankidroid 2.20.1,
The issue only concerns long texts on back notes on a Samsung Tab A8 physically being in landscape position. This behaviour seems to occur since the last ankidroid update.
Wen clicking “show answer”, the notes back top text lines (+ the front note content) are not displayed, and one cannot scroll up to view all the content. Physically rotating the tablet to portrait position displays all content right.
Can you please look into this matter.
Using Ankidroid for more then a decade on daily basis I greatly appreciate your efforts to continue developing this wonderfull product!
Stephan
- It could be that the cards aren’t playing nicely with the center vertically option. If you have that enabled in Settings > Appearance – try turning it off.
- Are you using a custom note type/card templates? What you’re might be related to the
<hr id=answer>
line, or to boxes, divs, and other display properties on your cards. - You might also need to consider reducing the size of your font to keep your text on the screen.
Thxs for your prompt reply.
I have to revise my argument. The only statement that remains after examining a bit more:
Wen clicking “show answer”, the notes back top text lines (+ the front note content) are not displayed anymore, and one cannot scroll up to view all the content. (holding the tablet in landscape or portrait position).
and … I notice the same behaviour on a Samsung smartphone.
To answer your questions:
- Changing the center vertically option doesn’t change this behaviour;
- I use the default basic + extra field template
- My cards only contain text in a regular font
- I use my decks for more then 10 years whithout modifying anything other then adding notes.
- I add a screenshot for clarity
That isn’t a default Anki template. I can tell right away from the back template preview that your vertical spacing is altered. Is that coming from something on the note type’s front template or “Styling”?
```
[When you post templates/styling/code, please post them
as text in a code/preformatted-text block instead of a screenshot.
It makes it easier for folks to help.]
```
It may be that your note type relies on workarounds that are no longer available. That sometimes happens when a new release with bug fixes comes out.
Danika,
Thanks again for your prompt reply.
I add some new screenshots hoping to answer your questions?
Possibly related to fix: Top side of card is cut off when "Center align" enabled & content is long by snowtimeglass · Pull Request #17997 · ankidroid/Anki-Android · GitHub?
Not quite what I was looking for when I asked for text instead of screenshots.
I’m no CSS expert, but this looks an awful lot like you’re forcing your text into a fixed box. Try removing that.
They may be better ways to do whatever it is you’re trying to do with that formatting.
Dear LLama
Indeed, On Android 14, my issue matches to pattern B, although the issue was current - center align being enabled or disabled. But thanks to your suggestion I followed the approach > “Use min-height: 100%
instead of `height: 100%” and this fixed my issue!
Thanks a lot to you and Danika for your efforts. You can close this ticket.