bruiken / Notepad--

Notepad--, a lightweight web based editor with numerous optional features.
MIT License
3 stars 0 forks source link

The height of the editor should be "the blank space on the page" #2

Open bruiken opened 3 years ago

bruiken commented 3 years ago

We do not want the page to be in a state where it needs to be scrolled. But we do also not want a page with empty space. The empty space should be filled with the editor.

We can do this using some janky jQuery code, literally computing how much space we can use and setting the editor to that height.

Note that we might get to features that create extra content on the page. This means that we need to make sure that the editor is also resized when the size of the HTML page is resized.

jwijenbergh commented 3 years ago

Note that we might get to features that create extra content on the page. This means that we need to make sure that the editor is also resized when the size of the HTML page is resized.

We should wrap every content in one single div class, similar to how I've done with the editor div. This div we will then give the remaining space?

bruiken commented 3 years ago

Yep sounds good