projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3732c5
)
Calcul de la retaille prenant en compte l'absence de barre de scroll horizontal
author
Benoît Pin
<benoit.pin@gmail.com>
Tue, 15 Jul 2014 09:23:50 +0000
(11:23 +0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Tue, 15 Jul 2014 09:23:50 +0000
(11:23 +0200)
skins/photo_film_viewer.js
patch
|
blob
|
history
diff --git
a/skins/photo_film_viewer.js
b/skins/photo_film_viewer.js
index
9bbf5ef
..
ff8d61e
100644
(file)
--- a/
skins/photo_film_viewer.js
+++ b/
skins/photo_film_viewer.js
@@
-113,6
+113,7
@@
FilmSlider.prototype.resizeSlider = function(evt) {
}
else {
}
else {
+ // pas de barre de scroll horizontal pour les tablettes
FilmSlider.prototype.resizeSlider = function(evt) {};
}
FilmSlider.prototype.resizeSlider = function(evt) {};
}
@@
-158,7
+159,12
@@
FilmSlider.prototype.fitToScreen = function(evt) {
FilmSlider.prototype._fitToScreen = function(evt) {
var wh = getWindowHeight();
FilmSlider.prototype._fitToScreen = function(evt) {
var wh = getWindowHeight();
+ if (!browser.isMobile) {
var rb = getObjectTop(this.rail) + getObjectHeight(this.rail); // rail bottom
var rb = getObjectTop(this.rail) + getObjectHeight(this.rail); // rail bottom
+ }
+ else {
+ var rb = getObjectTop(this.filmBar) + getObjectHeight(this.filmBar); // film bottom
+ }
var delta = wh - rb;
var sh = getObjectHeight(this.stretchable);
var newSize = sh + delta;
var delta = wh - rb;
var sh = getObjectHeight(this.stretchable);
var newSize = sh + delta;