shin10kudev / algo-app

Ruby on Rails project for sharing and discovering solutions to algorithm problems
1 stars 0 forks source link

fix - make editor scale to user's code length up to 1000 lines #58

Closed Z4CHx closed 7 years ago

Z4CHx commented 7 years ago

edit editor css and editor settings to be relatively positioned, which keeps the layout in tact while letting the box expand to up to 1000 lines.

shin10kudev commented 7 years ago
screen shot 2017-04-13 at 2 58 35 pm

It looks like you need to remove the min-height on the #editor-wrapper or else short posts get this sort of look

Code can be found here:

https://github.com/eliotc1986/algo-app/blob/668279fe9b4be8b298ab4185de1e4b18d781ba54/app/assets/stylesheets/views/_code_editor.scss#L4

shin10kudev commented 7 years ago

LGTM 👍