EasyUI Forum

General Category => Bug Report => Topic started by: Pierre on October 28, 2016, 06:50:30 AM



Title: [SOLVED] Bug by drag/drop
Post by: Pierre on October 28, 2016, 06:50:30 AM
Hello
I'm using latest patch and when I drag dialog and when it is dropped, it is resized (if there is some empty space) - please see images - "before" and "after".

When I comment this code (from patch file):

Code:
(function($){
function constrain(){
if ($.fn.draggable.isDragging){
return {
width: null,
height: null
};
} else {
return {};
}
}
$.extend($.fn.window.defaults, {
constrain: constrain
});
$.extend($.fn.dialog.defaults, {
constrain: constrain
});
})(jQuery);


then it works normal.



Title: Re: Bug by drag/drop
Post by: jarry on October 28, 2016, 08:38:31 AM
The patch has been updated. Please download it from http://www.jeasyui.com/download/downloads/jquery-easyui-1.5-patch.zip.


Title: [SOLVED] Re: Bug by drag/drop
Post by: Pierre on October 28, 2016, 11:05:43 AM
Awesome, thank you so much.