Update StackViewLayout.js

This commit is contained in:
Brent Vatne 2018-09-14 12:32:55 +02:00 committed by GitHub
parent 7da0b8cc41
commit 6e13e684d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -605,7 +605,7 @@ class StackViewLayout extends React.Component {
const hasHeader = options.header !== null;
const headerMode = this._getHeaderMode();
let paddingTop = 0;
if (hasHeader && headerMode === 'float') {
if (hasHeader && headerMode === 'float' && !options.headerTransparent) {
paddingTop = this.state.floatingHeaderHeight;
}