mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 20:00:10 +00:00
minor tweak in directory selector...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7d928fd50c
commit
2895f07589
@ -497,23 +497,23 @@ function alignVia(container, elem, via, valign, halign, mode){
|
||||
|
||||
if(valign == 'center'){
|
||||
var H = container.innerHeight()
|
||||
var h = elem.outerHeight()
|
||||
var h = elem.outerHeight(true)
|
||||
target.top = t - dt + (H - h)/2,
|
||||
} else if(valign == 'top'){
|
||||
target.top = t - dt
|
||||
} else if(valign == 'bottom'){
|
||||
var h = elem.outerHeight()
|
||||
var h = elem.outerHeight(true)
|
||||
target.top = t - dt - h
|
||||
}
|
||||
|
||||
if(halign == 'center'){
|
||||
var W = container.innerWidth()
|
||||
var w = elem.outerWidth()
|
||||
var w = elem.outerWidth(true)
|
||||
target.left = l - dl + (W - w)/2
|
||||
} else if(halign == 'left'){
|
||||
target.left = l - dl
|
||||
} else if(halign == 'right'){
|
||||
var w = elem.outerWidth()
|
||||
var w = elem.outerWidth(true)
|
||||
target.left = l - dl - w
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user