EasyUI Forum
April 26, 2024, 07:43:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Bug by drag/drop  (Read 5551 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« 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.

« Last Edit: October 28, 2016, 11:06:01 AM by Pierre » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 on: October 28, 2016, 11:05:43 AM »

Awesome, thank you so much.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!