How to get the ace editor to adjust to its parent div
问题 I have the ace div inside another div and I would like the ace editor to adjust it's width and height to the parent div. I call editor.resize() but nothing happens. <!DOCTYPE html> <html lang="en" style="height: 100%"> <head> <title>ACE in Action</title> <style type="text/css" media="screen"> #editor { top: 0; right: 0; bottom: 0; left: 0; height: 100px; } </style> </head> <body style="height: 100%"> <div style="background-color: red; height: 100%; width: 100%;"> <div id="editor">function foo