Idea: Make the interactive example code editor vertically resizable
To facilitate tinkering with examples in more and bigger and better ways, we should consider making the editor box for interactive examples resizable so the user can choose to have room for a larger number of lines of code than the initial sample code.
Just adding the ability to grab the bottom edge of the code box and drag it up and down to resize it would be a nice touch; have the rest of the interactive sample box and the surrounding page content move up and down as needed to make room.
I don't think we should implement this, not at the moment anyway. As Schalk says: https://github.com/mdn/interactive-examples/pull/542#issuecomment-364037393: it's complicated, because the editor is embedded in an iframe, so we have to do this postMessage dance when the two sides need to cooperate. It's not clear to me at he moment that the complexity is worth the benefit it gives users. We could revisit this later on, especially if we eventually move to a non-iframe-based architecture.
Makes sense. It's kind of a bummer, since it would be so convenient to be able to do so, but it's logical not to do something that's technically complex with it at this stage. I think it should be re-evaluated later for sure though.
On Thu, Feb 8, 2018 at 4:11 PM, wbamberg [email protected] wrote:
I don't think we should implement this, not at the moment anyway. As Schalk says: #542 (comment) https://github.com/mdn/interactive-examples/pull/542#issuecomment-364037393: it's complicated, because the editor is embedded in an iframe, so we have to do this postMessage dance when the two sides need to cooperate. It's not clear to me at he moment that the complexity is worth the benefit it gives users. We could revisit this later on, especially if we eventually move to a non-iframe-based architecture.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mdn/interactive-examples/issues/403#issuecomment-364249562, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkL3xg_9K21bIiRe0XbBrhNkhBlUZdMks5tS2L-gaJpZM4RZkH3 .
--
Eric Shepherd Senior Technical Writer Mozilla Blog: http://www.bitstampede.com/ Twitter: http://twitter.com/sheppy Check my Availability https://freebusy.io/[email protected]
This is still in To Do.