mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
fixed a bug in ribbons.placeImage(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9f231cb467
commit
4a18ab9ecc
@ -752,7 +752,10 @@ module.RibbonsPrototype = {
|
|||||||
.append(img)
|
.append(img)
|
||||||
// after...
|
// after...
|
||||||
} else if(i > 0){
|
} else if(i > 0){
|
||||||
to.next('.image')
|
// XXX this stumbles on non-images...
|
||||||
|
//to.next('.image')
|
||||||
|
// XXX is this fast enough??
|
||||||
|
to.nextAll('.image').first()
|
||||||
.before(img)
|
.before(img)
|
||||||
// before...
|
// before...
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -1192,6 +1192,7 @@ module.BoundsIndicators = Feature({
|
|||||||
function(target){
|
function(target){
|
||||||
target = target || this.current
|
target = target || this.current
|
||||||
var r = this.data.getRibbonOrder(target)
|
var r = this.data.getRibbonOrder(target)
|
||||||
|
|
||||||
var l = this.data.getImages(r).length
|
var l = this.data.getImages(r).length
|
||||||
var l0 = this.data.getImages(0).length
|
var l0 = this.data.getImages(0).length
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user