kevinmickey / django-prettyjson

Enables pretty JSON viewer in Django forms, admin, or templates
BSD 3-Clause "New" or "Revised" License
139 stars 21 forks source link

Parsed widget size #11

Closed fcurella closed 6 years ago

fcurella commented 7 years ago

When loading the widget as initially parsed in the admin, it takes the width and height of the original textarea, making it often too small. The parsed view takes considerably more space, and will often result in unnecessary scrolling:

screen shot 2017-08-30 at 10 52 38 am

This is easily fixable in the js, and I've got a fix ready. But I was wondering if you were set on the current behavior, of it there was a specific reason for how it currently works.

kevinmickey commented 7 years ago

I guess I try to leave default styling where I can, but I agree that it's usually too small. It would be awesome if you put your fix into a pull request!