Permalink
Browse files

Fixed Align to Right in Report Designer

  • Loading branch information...
steven-copley committed Aug 3, 2018
1 parent 47e7a25 commit 5bfb419bd409477d067eb8c2ad1b31b4d6216f3e
Showing with 14 additions and 8 deletions.
  1. +14 −8 nureportdrag.js
@@ -849,23 +849,29 @@ function nuMoverAlignLeftClick(){
function nuMoverAlignRightClick(){
var s = document.getElementsByClassName('nuDragSelected');
var l = 0;
var s = document.getElementsByClassName('nuDragSelected');
var r = 0;
nuDragR.dragging = true;
var gs = nuDragR.getGroupAndSection(s[0].id);
for(var i = 0 ; i < s.length ; i ++){
l = Math.max(l, parseInt(s[i].style.left) + parseInt(s[i].style.width));
var o = nuDragR.getObject(s[i].id);
r = Math.max(r, o.left + o.width - (o.borderWidth * 2));
}
for(var i = 0 ; i < s.length ; i ++){
s[i].style.left = String(l - parseInt(s[i].style.width)) + 'px';
var o = nuDragR.getObject(s[i].id);
o.left = r - o.width - (o.borderWidth * 2);
nuDragR.setObject(o);
}
nuLoadReport();
}

0 comments on commit 5bfb419

Please sign in to comment.