bem / bem/bem-components

Wrong popup positioning during window resize

Open
#1,823 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
330
Forks
88
PR merge metrics
No merged PRs in 30d

Description

How to reproduce:
1. open https://jsfiddle.net/ze4rn61k/1/
2. be sure that button in the html pan is visible and far enough from window border
3. press the button (you should see a popup) and start to minmize window from right to left

Expected result: popup should be the same after resize
Actual result: popup is corrupted

Correct popup view (before resize):
![2016-04-22 12 16 05](https://cloud.githubusercontent.com/assets/632171/14737292/6b737a52-088c-11e6-9cd8-87b7420f57b7.png)

Corrupted popup view (after resize):
![2016-04-22 12 17 01](https://cloud.githubusercontent.com/assets/632171/14737316/87d44578-088c-11e6-8ac6-095231dade9c.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the popup resize case in the linked JSFiddle, then trace the repository's popup positioning and window-resize handling; the issue does not name a source file or test. Done means the popup retains its correct appearance while the window is resized from right to left, with a regression check for the reported scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.