bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-28 19:16:13 +03:00
parent 73cacded7e
commit 07f881e2b8

View File

@ -960,6 +960,9 @@ var RibbonsPrototype = {
// center of an element... // center of an element...
} else if(typeof(target) != typeof(123)){ } else if(typeof(target) != typeof(123)){
target = $(target) target = $(target)
if(target.length == 0){
return $()
}
var w = target.hasClass('image') ? var w = target.hasClass('image') ?
this.getVisibleImageSize('width', null, target) : this.getVisibleImageSize('width', null, target) :
target.outerWidth() target.outerWidth()