Fixing event propagation on resizable.js when using iframes

This commit is contained in:
Bruno Alves de Faria 2016-11-21 18:04:52 -02:00
parent 3474fee906
commit f140a64f60
2 changed files with 5 additions and 2 deletions

View File

@ -48,6 +48,11 @@ OHIF.ui.makeDraggable = function(element) {
return;
}
// Stop the dragging if the element is being resized
if ($(element).hasClass('resizing')) {
return;
}
var elementTop = parseFloat(element.offset().top),
elementLeft = parseFloat(element.offset().left);

View File

@ -70,8 +70,6 @@ class Resizable {
this.initResizeHandler = event => {
const $window = $(window);
event.stopPropagation();
this.width = this.initialWidth = this.$element.width();
this.height = this.initialHeight = this.$element.height();
this.startWidth = this.width;