bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-04-15 21:33:43 +03:00
parent a26cbf1228
commit 270cfa364e

View File

@ -852,7 +852,8 @@ actions.Actions({
// XXX undo... // XXX undo...
shiftImageTo: ['- Edit|Sort|Image/', shiftImageTo: ['- Edit|Sort|Image/',
{undo: function(a){ this.shiftImageTo(a.args[1], a.args[0]) }}, {undo: function(a){ this.shiftImageTo(a.args[1], a.args[0]) }},
function(target, to, mode){ this.data.shiftImage(target, to, mode) }], function(target, to, mode){
this.data.shiftImage(target, to, mode) }],
shiftImageUp: ['Edit|Image/Shift image up', shiftImageUp: ['Edit|Image/Shift image up',
core.doc`Shift image up... core.doc`Shift image up...
@ -923,6 +924,8 @@ actions.Actions({
// XXX these are effectively identical... // XXX these are effectively identical...
// XXX when shifting the first image in ribbon alignment is a bit off... // XXX when shifting the first image in ribbon alignment is a bit off...
// XXX add undo... // XXX add undo...
// XXX BUG: after move the wrong image is centered -- correct positioning after move...
// XXX ASAP: add animation...
shiftImageToTop: ['Edit|Image/Shift image to top ribbon', shiftImageToTop: ['Edit|Image/Shift image to top ribbon',
function(target){ function(target){
console.warn('shiftImageToTop(..)/shiftImageToBottom(..): need proper undo.') console.warn('shiftImageToTop(..)/shiftImageToBottom(..): need proper undo.')
@ -1151,6 +1154,9 @@ core.ImageGridFeatures.Feature({
'shiftImageDown', 'shiftImageDown',
'shiftImageLeft', 'shiftImageLeft',
'shiftImageRight', 'shiftImageRight',
'shiftImageToTop',
'shiftImageToBottom',
'shiftImageToBase',
], ],
function(){ this.shiftImage.apply(this, [].slice(arguments, 1))}], function(){ this.shiftImage.apply(this, [].slice(arguments, 1))}],
// horizontal shifting... // horizontal shifting...