fix typo in textinput.js
This commit is contained in:
parent
938d6b658d
commit
0514860492
4 changed files with 4 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ var bindCheckbox = util.bindCheckbox;
|
|||
var bindDropdown = util.bindDropdown;
|
||||
|
||||
/*********** create editor ***************************/
|
||||
var container = document.getElementById("editor");
|
||||
var container = document.getElementById("editor-container");
|
||||
|
||||
// Splitting.
|
||||
var Split = require("ace/split").Split;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ body {
|
|||
margin-left: 70px;
|
||||
}
|
||||
|
||||
#editor {
|
||||
#editor-container {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 280px;
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="editor"></div>
|
||||
<div id="editor-container"></div>
|
||||
|
||||
<!--DEVEL-->
|
||||
<script type="text/javascript">
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ var TextInput = function(parentNode, host) {
|
|||
// text.style.cssText += "background:rgba(250, 0, 0, 0.3); opacity:1;";
|
||||
|
||||
resetSelection(host.selection.isEmpty());
|
||||
host._emit("nativecontextmenu", {target: editor});
|
||||
host._emit("nativecontextmenu", {target: host});
|
||||
var rect = host.container.getBoundingClientRect();
|
||||
var move = function(e) {
|
||||
text.style.left = e.clientX - rect.left - 2 + "px";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue