Fix issue with CodeMirror being wider than the screen and scrolling.
Seems like width: 100% + padding/margin causes the actual width to be more than 100%. Though if the CodeMirror element just auto-calculate the width it's fine. Also fixed similar issue with the <textbox>.