Last active
November 18, 2015 05:51
-
-
Save Grokling/328c621eda357a71b494 to your computer and use it in GitHub Desktop.
flex-direction:column bug reproduction
This file contains hidden or 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title>flex-direction:column bug reproduction</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/0.11.4/angular-material.css"> | |
<style> | |
.chapter { | |
margin-left: 0px; | |
border: 1px solid #b8b8b8; | |
border-radius: 10px; | |
background-color: #DADADA; | |
box-shadow: rgba(48, 48, 48, 0.62) 2px 2px 4px; | |
} | |
.ng-hide { | |
display:none; | |
} | |
</style> | |
</head> | |
<body> | |
<h3>This page reproduces an issue on Android:Chrome whereby elements with layout-column (flex-direction:column) fail to have a height</h3> | |
<p> To see the difference, open this page on an android device, use chrome://inspect to connect and change the </p> | |
<p> "div class="chapter layout-column flex">" to </p> | |
<p> "div class="chapter layout-row flex">"</p> | |
<p> Alternately, remove the angular-material.css</p> | |
<p> You'll notice that the '.chapter' background below now properly encompasses the two inputs</p> | |
<chapters class="flex"> | |
<div class="chapter layout-column flex"> | |
<div class="section layout-column flex"> | |
<div class="question layout-row"> | |
<div class="layout-gt-sm-row"> | |
<md-input-container class="md-input-has-value"> | |
<label for="input_1">Input 1</label> | |
<input type="text" class="md-input" id="input_1"> | |
</md-input-container> | |
<button class="wnl md-button md-ink-ripple ng-hide" type="button" aria-hidden="true" aria-disabled="true" disabled="disabled" style=""> | |
<span>WNL</span> | |
</button> | |
</div> | |
</div> | |
<div class="question layout-row"> | |
<div class="layout-gt-sm-row"> | |
<md-input-container class="md-input-has-value"> | |
<label for="input_2">Input 2</label> | |
<input type="text" class="md-input" id="input_2"> | |
</md-input-container> | |
<button class="wnl md-button md-ink-ripple ng-hide" type="button" aria-hidden="true" aria-disabled="true" disabled="disabled" style=""> | |
<span>WNL</span> | |
</button> | |
</div> | |
</div> | |
</div> | |
</div> | |
</chapters> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment