html - Why does a vertical scrollbar appear when using inline-flex and min-height: 100% while a horizontal scrollbar is present in Edge? -


here's pen illustrating issue: http://codepen.io/derrikcurran/pen/xnmeoz

the browsers i'm worried chrome, firefox, , edge.

i have tree of 3 divs; #grandparent > #parent > #child. if #grandparent has overflow: auto , #parent has display: inline-flex , min-height: 100%, seems work in 3 browsers. however, if #child wider #parent, horizontal scrollbar appears on #grandparent (as expected , desired) and, in edge, vertical scrollbar appears well.

it seems minimum height calculation in edge not taking height of horizontal scrollbar account. in fact, edge's horizontal scrollbar 12px tall , min-height: calc(100% - 12px) solves problem.

is there way work around without useragent sniffing or javascript? bug edge? clear, need #grandparent scroll in both directions, when #child taller #parent.

i'd point out not appear caused known ie11 flexbox/min-height issue described here: https://connect.microsoft.com/ie/feedback/details/802625/

  #grandparent {     position: absolute;     top: 20px;     right: 0;     bottom: 0;     left: 0;     overflow-x: hidden; /* solution */     overflow-y: auto; /*other half */ } 

i fixed overflow, page doesn't scroll. if want no scroll bars use "hidden" both.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -