winjs - Invoking the app bar in Windows 8 app causes scrolled child divs to jump to top -


i've encountered odd behavior in windows8 app i'm building winjs, javascript, , html. in particular page i'm implementing, there several divs have css rules this:

.col {   border: 1px solid none;   overflow-x: hidden;   overflow-y: auto;   height: 100%;   margin: 0px;   width: 100%; } 

the problem when invoke main app bar right clicking, scrolled content in div snaps top of div. in other words, scroll position of div lost. i've tried host of ways fix, nothing has come up. how can prevent scrolled content jumping around upon invoking app bar.

thanks!

suggest use -ms-grid page. app bar overlap div in case, ok , right behavior can see in other apps also.

html:

<div class="test5 fragment">     <header aria-label="header content" role="banner">         <button class="win-backbutton" aria-label="back" disabled type="button"></button>         <h1 class="titlearea win-type-ellipsis">             <span class="pagetitle">test page</span>         </h1>     </header>     <section class="content" aria-label="main content" role="main">         <div class="test-content">             text here.         </div>     </section> </div> <div id="appbar" data-win-control="winjs.ui.appbar">     <button data-win-control="winjs.ui.appbarcommand" data-win-options="{id:'cmd', label:'command', icon:'placeholder'}" type="button"></button> </div>  

css:

.test5.fragment section[role=main] {     display: -ms-grid;     -ms-grid-rows: 1fr;     -ms-grid-columns: 1fr; } 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -