После слияния с рабочей копией
This commit is contained in:
@ -169,7 +169,7 @@ function loadContent(url,obj)
|
||||
function alert2(text)
|
||||
{
|
||||
var win=new TWin();
|
||||
win.TWin(10,10);
|
||||
win.BuildGUI(10,10);
|
||||
win.setCaption(document.createTextNode("Alert"));
|
||||
var html='\n\
|
||||
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">\n\
|
||||
@ -1060,7 +1060,7 @@ class TWin
|
||||
this.pBarCnt=0; //Прогресс бар
|
||||
this.pBarDiv=null; //Прогресс бар
|
||||
|
||||
var fnResizeListener=null;
|
||||
this.fnResizeListener=null;
|
||||
}
|
||||
|
||||
addResizeListener(func)
|
||||
@ -1071,7 +1071,7 @@ class TWin
|
||||
|
||||
onResize(x,y)
|
||||
{
|
||||
var win=this;
|
||||
let win=this;
|
||||
return function(e){
|
||||
if(!e) e = window.event;
|
||||
win.dx=e.pageX || e.x
|
||||
@ -1085,10 +1085,10 @@ class TWin
|
||||
};
|
||||
document.onmousemove = function(e) {
|
||||
if(!e) e = window.event;
|
||||
var x2 = e.pageX || e.x;
|
||||
var y2 = e.pageY || e.y;
|
||||
var w=parseInt(win.div.style.width)-(win.dx-x2)*x;
|
||||
var h=parseInt(win.div.style.height)-(win.dy-y2)*y;
|
||||
let x2 = e.pageX || e.x;
|
||||
let y2 = e.pageY || e.y;
|
||||
let w=parseInt(win.div.style.width)-(win.dx-x2)*x;
|
||||
let h=parseInt(win.div.style.height)-(win.dy-y2)*y;
|
||||
if(w<0)w=0;
|
||||
if(h<0)h=0;
|
||||
win.setWidth(w+"px");
|
||||
@ -1348,7 +1348,12 @@ class TWin
|
||||
if(this.tbl.offsetWidth>this.div.offsetWidth) this.div.style.width=this.tbl.offsetWidth+"px"
|
||||
};
|
||||
|
||||
getWidth(){return parseInt(this.tbl.offsetWidth);};
|
||||
getWidth(){
|
||||
if(this.tbl!=null)
|
||||
return parseInt(this.tbl.offsetWidth);
|
||||
else
|
||||
return 0;
|
||||
};
|
||||
|
||||
setHeight(h)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user