fix typo in textinput.js

This commit is contained in:
nightwing 2012-12-17 10:25:37 +04:00
commit 0514860492
4 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ var bindCheckbox = util.bindCheckbox;
var bindDropdown = util.bindDropdown; var bindDropdown = util.bindDropdown;
/*********** create editor ***************************/ /*********** create editor ***************************/
var container = document.getElementById("editor"); var container = document.getElementById("editor-container");
// Splitting. // Splitting.
var Split = require("ace/split").Split; var Split = require("ace/split").Split;

View file

@ -21,7 +21,7 @@ body {
margin-left: 70px; margin-left: 70px;
} }
#editor { #editor-container {
position: absolute; position: absolute;
top: 0px; top: 0px;
left: 280px; left: 280px;

View file

@ -254,7 +254,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="editor"></div> <div id="editor-container"></div>
<!--DEVEL--> <!--DEVEL-->
<script type="text/javascript"> <script type="text/javascript">

View file

@ -368,7 +368,7 @@ var TextInput = function(parentNode, host) {
// text.style.cssText += "background:rgba(250, 0, 0, 0.3); opacity:1;"; // text.style.cssText += "background:rgba(250, 0, 0, 0.3); opacity:1;";
resetSelection(host.selection.isEmpty()); resetSelection(host.selection.isEmpty());
host._emit("nativecontextmenu", {target: editor}); host._emit("nativecontextmenu", {target: host});
var rect = host.container.getBoundingClientRect(); var rect = host.container.getBoundingClientRect();
var move = function(e) { var move = function(e) {
text.style.left = e.clientX - rect.left - 2 + "px"; text.style.left = e.clientX - rect.left - 2 + "px";