locked
Window 8 app State View CSS RRS feed

  • Question

  • I have Windows 8 WinJS app that was running in both Windows 8 and Windows 8.1. But i want to replace snap and filled view with media query max and min. But when i run Windows 8 app in Windows 8.1 OS and try to change view state to single the UI occur two black border at two side when i set to max-width 320px.

    So i want to replace snap and fill view in windows 8 with max and min width of CSS.

    Is it possible to do?


    shishir

    Friday, November 15, 2013 10:30 AM

Answers

  • If you're app is still targeting Windows 8, then you still want to use the explicit view states. For Windows 8 apps, Windows 8.1 allows variable resizing of the view, but the app itself will still see only snapped, filled, and fullscreen states. The letterboxing you see is by design, because Win8 apps don't expect to be in other states between snapped and filled.

    To do true variable sizing using min-width/max-width, you need to retarget the project for Windows 8.1. If you want best compatibility with both OS versions, at present you'll need to maintain a separate build for each.

    Friday, November 15, 2013 4:44 PM