-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Math.ceil the height value passed to setDeviceMetricsOverride (#174)
* Math.ceil the height passed to setDeviceMetricsOverride * Add a test case for non-integer viewport Add reference images for Non-Integer Viewport * Fix loki logo URL in visual tests (#175)
- Loading branch information
Showing
6 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+8.59 KB
examples/react/.loki/reference/chrome_a4_Non_Int_Viewport_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
examples/react/.loki/reference/chrome_iphone7_Non_Int_Viewport_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.9 KB
examples/react/.loki/reference/chrome_laptop_Non_Int_Viewport_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const NonIntViewport = ({ children }) => ( | ||
<div style={{ | ||
width :'100%', | ||
paddingTop : '17%', | ||
backgroundColor : '#00f' | ||
}}> | ||
{ children } | ||
</div> | ||
); | ||
|
||
export default NonIntViewport; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters