Bug in FlipView. When entering landscape view state when the FlipView's width is sized by a percentage, the current page changes RRS feed

  • General discussion

  • When the FlipView's width is sized by a percentage and the view state enters fullscreen-landscape (either from portrait or filled) it will alter the current page to a preceding page.  For example, in landscape, I move to page 4 then switch to portrait, then switch back to landscape; The current page will change to 2.

    Repro code:

    <div id="flipView" data-win-control="WinJS.UI.FlipView"></div>
    	width: 50%;
    	height: 500px;
    var list = new WinJS.Binding.List([{ test: "1" }, { test: "2" }, { test: "3" }, { test: "4" }]);
    var flipView = document.querySelector("#flipView").winControl;
    WinJS.UI.setOptions(flipView, {
       itemDataSource: list.dataSource,

    I suspect this is because the flip view container is expanding, somehow triggering page changes.


    Friday, May 11, 2012 5:19 PM