fixed a bug in ribbons.placeImage(..)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-03 00:29:49 +03:00
parent 9f231cb467
commit 4a18ab9ecc
2 changed files with 5 additions and 1 deletions

View File

@ -752,7 +752,10 @@ module.RibbonsPrototype = {
.append(img)
// after...
} 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...
} else {

View File

@ -1192,6 +1192,7 @@ module.BoundsIndicators = Feature({
function(target){
target = target || this.current
var r = this.data.getRibbonOrder(target)
var l = this.data.getImages(r).length
var l0 = this.data.getImages(0).length