fix t/444: whitespace on right side; cleaned up some js

This commit is contained in:
jomo
2014-09-25 22:05:05 +02:00
parent b5c643f032
commit b8ae04c94d
2 changed files with 10 additions and 4 deletions

View File

@@ -21,7 +21,7 @@
makeAutoComplete(element,obj);
}
});
}
};
//var browser = {isChrome: $.browser.webkit };
@@ -166,6 +166,13 @@
chars:getDefaultCharArray()};
var clone = createClone(_count);
// we need to fix the width
window.onresize = function() {
clone.remove();
clone = createClone(_count);
console.debug('window resized!');
};
_data[_count].clone = clone;
setCharSize(_data[_count]);
//_data[_count].lineHeight = $(ta).css("font-size");
@@ -180,7 +187,7 @@
return ul;
}
function createClone(id){
function createClone(id) {
var data = _data[id];
var div = document.createElement("div");
var offset = $(data.ta).offset();

View File

@@ -58,9 +58,8 @@ $(function() {
mode: "inner",
on: {
query: function(text, callback) {
console.log(query_history)
if (text.length > 2 && text[0] == "@") {
text = text.slice(1)
text = text.slice(1);
if (query_history[text]) {
callback(query_history[text]);
} else {