shosetsuorg / shosetsu

An android application for reading light novels. Moved to https://gitlab.com/shosetsuorg/shosetsu
https://shosetsu.app
GNU General Public License v3.0
581 stars 34 forks source link

[Bug] [2.0.0-1656] DropdownFilter dropdown y-location #154

Open khonkhortisan opened 2 years ago

khonkhortisan commented 2 years ago

Describe the bug Rarely, a filter dropdown will open at the top of the screen, as if the entire filter menu is at the top of the screen

To Reproduce Steps to reproduce the behavior:

  1. open shosetsu
  2. Browse
  3. open WoopRead or ScribbleHub or NOVA or any other extension with at least one DropdownFilter
  4. open filter menu
  5. open Order by dropdown
  6. close Order by dropdown
  7. open Genres Condition dropdown
  8. if the bug hasn't shown up yet, spam different dropdowns and reopen the app
  9. take a screenshot when it happens

Expected behavior the dropdown always appears immediately above/below its title's current position

Screenshots imagen

Device information:

AND

Additional context Add any other context about the problem here.

Doomsdayrs commented 2 years ago

This might be due to there being a lack of space below, but it being so high up is insane. Will look into

khonkhortisan commented 2 years ago

Counterexamples: NOVA's 'Condition de géneros' has plenty of space above and below, and WoopRead's dropdown in BlueStacks doesn't reach the bottom (though it would reach the top) imagenimagen

khonkhortisan commented 2 years ago

154-WoopRead-Orderby-normalbehavior.txt I opened WoopRead, opened Order by dropdown, it appeared in the right place D/ViewRootImpl@d31fc1d[MainActivity]: Relayout returned: old=(880,1621,1004,2034) new=(880,1621,1004,2034) req=(124,413)0 dur=11 res=0x1 s={true 534074535936} ch=false

154-WoopRead-Condition-Orderby.txt I opened WoopRead, opened/closed Genres Condition, opened Order by, it appeared in the wrong place D/ViewRootImpl@5d0fc44[MainActivity]: Relayout returned: old=(880,112,1004,525) new=(880,112,1004,525) req=(124,413)0 dur=14 res=0x1 s={true 532560306176} ch=false 154-WoopRead-Condition-Orderby2.txt Then I swiped up to get to the home screen, and while I did the dropdown jumped to the bottom of the screen (the correct position according to the coordinates in the log)

154-WoopRead-SpamOrderBy-OpenGenresCondition.txt

build running on Samsung Galaxy A20 connected by USB, live debug log in Android Studio