Ionaru / Ionaru/easy-markdown-editor

Leaving fullscreen mode does not make side-by-side view disappear

Open
#306 5 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

If you are in fullscreen mode with side-by-side view and you leave fullscreen mode, the side-by-side previsualization stays on half the page

**To Reproduce**
Steps to reproduce the behavior:

1. With `sideBySideFullscreen` set to `false`
1. Go fullscreen mode
2. Activate side-by-side view
3. Leave fullscreen mode

**Expected behavior**
Side-by-side view should either disappear or be restricted to the editor

**Screenshots**
![Screenshot of the issue](https://user-images.githubusercontent.com/6664636/108638203-52e74b80-748e-11eb-94d0-633b88a44ccc.png)

** Version information **
- OS: Ubuntu Budige 20.04
- Browser: Firefox 85
- EasyMDE version: 2.14.0

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the fullscreen and side-by-side sequence with sideBySideFullscreen set to false, then trace the fullscreen and side-by-side state handling. Done means leaving fullscreen removes the side-by-side preview or restricts it to the editor, with the reported behavior covered by a regression check.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.