Closed CodeWithOz closed 2 years ago
@CodeWithOz Thank you, yes did not test all cases. will check and fix
@CodeWithOz should be fixed and available with 1.2.91
@roman-rr Nice! Please update the "releases" section of this repo so that the latest versions are shown there. I didn't know you had released new versions because that number hasn't changed, but I just checked npm and can see there's already 1.2.92
.
@CodeWithOz In 1-2 days will be released major 1.3.0 with changelogs
and releases section. 1.2.92
just a minor tag version.
@roman-rr okay thanks :+1: . I tried the new 1.2.92
in my real app and this problem isn't fully fixed. It's still moving a lot before finally settling on the updated breakpoint height. I don't have a reproduction in a sample app right now but if you have other ways to test the fix then it may be worth doing so.
Describe the bug A clear and concise description of what the bug is. Calling
.setBreakpoints({ middle: { enabled: true, height: 400 } })
on a device whosewindow.innerHeight
is568
causes the pane to be adjusted beyond the height of the device. And repeating this causes the height to continue rising. This was not happening as of commit#ce86b63
, but the current latest commit#2436337
has the bugTo Reproduce Steps to reproduce the behavior:
Expected behavior
.setBreakpoints({ middle: { enabled: true, height: 400 } })
should set the height of the breakpoint to 400px instead of increasing the height of the pane by 400px.Screenshots See this attached video.
https://user-images.githubusercontent.com/28525986/172643958-e2ae6aab-5a45-48f7-9d2d-1eb59b7e8c84.mp4
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.