put call to top and left in callback to resize
This commit is contained in:
parent
a83bf0d3ef
commit
d44309cd50
|
@ -833,8 +833,8 @@ ImageBox.prototype.addEventHandlers = function() {
|
|||
var left = parseInt($(this).position().left).toString();
|
||||
var height = $(this).height().toString();
|
||||
var width = $(this).width().toString();
|
||||
that.resize({'height': height, 'width': width});
|
||||
that.setCSS({'top': top, 'left': left});
|
||||
that.resize({'height': height, 'width': width, 'top': top, 'left': left});
|
||||
//that.setCSS({'top': top, 'left': left});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -886,6 +886,7 @@ ImageBox.prototype.resize = function(dimensions) {
|
|||
if (response.status == 1) {
|
||||
var path = $.trim(response.path);
|
||||
that.jq.find('.edgeImage').attr("src", path);
|
||||
that.setCSS({'top': top, 'left': left});
|
||||
// REVISION_NO = response.rev_id;
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user