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