dtd선언시 파이어 폭스에서 gediter inset 레이어 밀려서 나올때
익스에서는 레이어가 정상으로 나오나 파이어 폭스에서는 왼쪽하단에 밀려서 나타나는 현상이 있습니다..
geditor.js
this.get_option_div = function(obj, left) {
if (IS_IE) height = -1; else height = 5;
if (typeof left == 'undefined') left = 0;
var div = document.createElement("div");
div.style.border = "#CCCCCC 1px solid";
div.style.padding = "10px";
div.style.display = "block";
div.style.position = "absolute";
div.style.zIndex = 1;
div.style.backgroundColor = "#FFFFFF";
div.style.top = this.get_top(obj) + obj.offsetHeight + height + "px";
div.style.left = this.get_left(obj) - left + "px";
div.style.textAlign = "left";
div.style.fontSize = '12px';
div.unselectable = "on";
return div;
}
geditor.js
this.get_option_div = function(obj, left) {
if (IS_IE) height = -1; else height = 5;
if (typeof left == 'undefined') left = 0;
var div = document.createElement("div");
div.style.border = "#CCCCCC 1px solid";
div.style.padding = "10px";
div.style.display = "block";
div.style.position = "absolute";
div.style.zIndex = 1;
div.style.backgroundColor = "#FFFFFF";
div.style.top = this.get_top(obj) + obj.offsetHeight + height + "px";
div.style.left = this.get_left(obj) - left + "px";
div.style.textAlign = "left";
div.style.fontSize = '12px';
div.unselectable = "on";
return div;
}
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 1개