bugfix
This commit is contained in:
parent
aae31b3329
commit
93eeb237b0
@ -167,7 +167,7 @@ bricks.Popup = class extends bricks.VBox {
|
|||||||
var ele;
|
var ele;
|
||||||
ele = this.resizable_w.dom_element;
|
ele = this.resizable_w.dom_element;
|
||||||
if (ele != e.target && ! ele.contains(e.target)){
|
if (ele != e.target && ! ele.contains(e.target)){
|
||||||
console.log("resizing():", ele, e.target);
|
console.log("resizing():on other dom element");
|
||||||
this.stop_resizing();
|
this.stop_resizing();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -176,7 +176,6 @@ bricks.Popup = class extends bricks.VBox {
|
|||||||
this.stop_resizing();
|
this.stop_resizing();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
e.preventDefault();
|
|
||||||
if (this.is_resizing) {
|
if (this.is_resizing) {
|
||||||
console.log("resizing(): resizing not finished");
|
console.log("resizing(): resizing not finished");
|
||||||
return;
|
return;
|
||||||
@ -186,6 +185,7 @@ bricks.Popup = class extends bricks.VBox {
|
|||||||
this.remember_event_pos(e);
|
this.remember_event_pos(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
e.preventDefault();
|
||||||
this.is_resizing = true;
|
this.is_resizing = true;
|
||||||
var d = this.calculate_moving_pos(e);
|
var d = this.calculate_moving_pos(e);
|
||||||
var cx, cy;
|
var cx, cy;
|
||||||
@ -193,9 +193,14 @@ bricks.Popup = class extends bricks.VBox {
|
|||||||
cy = this.get_height() + d.y;
|
cy = this.get_height() + d.y;
|
||||||
this.set_style('width', cx + 'px');
|
this.set_style('width', cx + 'px');
|
||||||
this.set_style('height', cy + 'px');
|
this.set_style('height', cy + 'px');
|
||||||
this.remember_event_pos(e);
|
|
||||||
this.is_resizing = false;
|
this.is_resizing = false;
|
||||||
console.log('= resizing()', this.origin_event_x, this.origin_event_y, e.clientX,e.clientY, e.target)
|
console.log('= resizing()',
|
||||||
|
this.origin_event_x,
|
||||||
|
this.origin_event_y,
|
||||||
|
e.clientX,
|
||||||
|
e.clientY
|
||||||
|
);
|
||||||
|
this.remember_event_pos(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_resizing(e){
|
stop_resizing(e){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user