fix breadcrumb icon offset

Reviewed By: @fkgozali

Differential Revision: D2528804

fb-gh-sync-id: 6ed9e9ce330ecc147c3fb8217c7b1b0986c862fe
This commit is contained in:
Jiajie Zhu 2015-10-09 17:52:19 -07:00 committed by facebook-github-bot-6
parent 7abf8ba631
commit c86966c150
1 changed files with 6 additions and 14 deletions

View File

@ -125,18 +125,14 @@ RIGHT[0].Title = merge(FIRST_TITLE_BASE, {opacity: 0});
var buildIndexSceneInterpolator = function(startStyles, endStyles) {
return {
Crumb: buildStyleInterpolator({
translateX: {
left: {
type: 'linear',
from: 0,
to: endStyles.Crumb.left - startStyles.Crumb.left,
from: startStyles.Crumb.left,
to: endStyles.Crumb.left,
min: 0,
max: 1,
extrapolate: true,
},
left: {
value: startStyles.Crumb.left,
type: 'constant'
},
}),
Icon: buildStyleInterpolator({
opacity: {
@ -164,18 +160,14 @@ var buildIndexSceneInterpolator = function(startStyles, endStyles) {
min: 0,
max: 1,
},
translateX: {
left: {
type: 'linear',
from: 0,
to: endStyles.Title.left - startStyles.Title.left,
from: startStyles.Title.left,
to: endStyles.Title.left,
min: 0,
max: 1,
extrapolate: true,
},
left: {
value: startStyles.Title.left,
type: 'constant'
},
}),
RightItem: buildStyleInterpolator({
opacity: {