mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a26cbf1228
commit
270cfa364e
@ -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...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user