mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fixed a problem with shadows, now they are the same size as a ribbon by deffinition as they are ribbons ;)
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ed0b08963b
commit
5fe2c662f7
@ -424,12 +424,14 @@ stretching in width... */
|
||||
}
|
||||
*/
|
||||
|
||||
/* NOTE: this is essentially a ribbon... */
|
||||
.shadow {
|
||||
position: absolute;
|
||||
overflow: visible;
|
||||
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin: 0px;
|
||||
|
||||
background: black;
|
||||
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
*/
|
||||
|
||||
.shadow {
|
||||
margin: 0px;
|
||||
z-index: 4000;
|
||||
}
|
||||
.ui-bounds-indicators {
|
||||
|
||||
@ -375,6 +375,7 @@ module.RibbonsPrototype = {
|
||||
// Example: several fast consecutive horizontal shifts will result
|
||||
// in a single shadow "flowing" through the ribbon.
|
||||
// NOTE: multiple shadows of different images are supported...
|
||||
// NOTE: the .shadow element is essentially a ribbon.
|
||||
//
|
||||
// XXX should we also have a ribbon shadow???
|
||||
makeShadow: function(target, animate, delay){
|
||||
@ -411,7 +412,7 @@ module.RibbonsPrototype = {
|
||||
// ...we need to scale it to the current scale...
|
||||
var shadow = setElementScale(
|
||||
$('<div>')
|
||||
.addClass('shadow')
|
||||
.addClass('shadow ribbon')
|
||||
.attr({
|
||||
gid: gid,
|
||||
ticket: ticket,
|
||||
@ -422,10 +423,13 @@ module.RibbonsPrototype = {
|
||||
.clone()
|
||||
.removeClass('current')
|
||||
.attr('gid', null))
|
||||
/*
|
||||
.css({
|
||||
width: img.width(),
|
||||
height: img.height(),
|
||||
}), s)
|
||||
width: img.outerWidth(),
|
||||
height: img.outerHeight(),
|
||||
})
|
||||
*/
|
||||
, s)
|
||||
// place it over the current image...
|
||||
.css({
|
||||
top: io.top - vo.top,
|
||||
|
||||
@ -1092,15 +1092,15 @@ actions.Actions({
|
||||
// | | image | | - block close to viewer proportion
|
||||
// | | <--> | | - image block growing parallel to viewer
|
||||
// | | | | longer side
|
||||
// | +-----------+ |
|
||||
// +---------------+
|
||||
// | +-----------+ | - this stage is not affected specific by image
|
||||
// +---------------+ proportions and can be done in bulk
|
||||
//
|
||||
//
|
||||
// C)
|
||||
// viewer
|
||||
// +---------------+
|
||||
// | image | - image block same size as viewer
|
||||
// | |
|
||||
// | | - need to account for chrome
|
||||
// | |
|
||||
// | |
|
||||
// | |
|
||||
@ -1113,10 +1113,10 @@ actions.Actions({
|
||||
// . .
|
||||
// +---------------+
|
||||
// | viewer | - image bigger than viewer in one dimension
|
||||
// | ^ | - block grows along viewer short side, now
|
||||
// | | | closer to image proportions
|
||||
// | v | - drag enabled
|
||||
// | |
|
||||
// | ^ | - block grows to fit image proportions
|
||||
// | | | - need to account for individual image
|
||||
// | v | proportions
|
||||
// | | - drag enabled
|
||||
// +---------------+
|
||||
// . .
|
||||
// + - - - - - - - +
|
||||
@ -1142,7 +1142,6 @@ module.SingleImageView = Feature({
|
||||
tag: 'ui-single-image-view',
|
||||
|
||||
// XXX should this be an action???
|
||||
// XXX
|
||||
updateImageProportions: function(actions){
|
||||
// XXX
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user