Don't reset zoom on refresh layout. (#2407)

This commit is contained in:
Filip Barl
2017-03-28 14:30:23 +02:00
committed by GitHub
parent 3e039a3143
commit b2f06a63ee
2 changed files with 1 additions and 5 deletions

View File

@@ -257,10 +257,6 @@ export function rootReducer(state = initialState, action) {
}
case ActionTypes.CLICK_FORCE_RELAYOUT: {
if (action.forceRelayout) {
// Reset the zoom cache when forcing relayout.
state = state.deleteIn(activeTopologyZoomCacheKeyPathSelector(state));
}
return state.set('forceRelayout', action.forceRelayout);
}

View File

@@ -1683,7 +1683,7 @@
// Notes: Firefox gets a bit messy if you try and bubble
// heights + overflow up (min-height issue + still doesn't work v.well),
// so this is a bit of a hack.
max-height: "calc(100vh - 160px - 160px - 160px)";
max-height: calc(100vh - 160px - 160px - 160px);
}
}
}