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:
Alex A. Naanou 2014-11-10 04:11:06 +03:00
parent ed0b08963b
commit 5fe2c662f7
4 changed files with 18 additions and 12 deletions

View File

@ -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;

View File

@ -30,6 +30,7 @@
*/
.shadow {
margin: 0px;
z-index: 4000;
}
.ui-bounds-indicators {

View File

@ -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,

View File

@ -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
},