locked
SemanticZoom onzoomchanged only affects DOM elements that are in the browsers view without scrolling RRS feed

  • Question

  • I am new to Win 8 development so please bear with me. I have set up a page containing a zoomed out template containing several sections. Since there are so many sections, horizontal scroll is available to allow the user to see the sections. So lets say there are 16 sections and only 8 are shown in the browser without having to scroll.

    When a user goes from the zoomed in view to the zoomed out view, the onzoomedchanged event fires. In the onzoomedchanged event, i loop through the different sections and see if they contain data, if there is no data, they receive a different style treatment. The problem is that the loop for check to see if there is data only happens for those sections that are currently in the browser's viewable area, not those that you have to scroll to see. 

    My question is if I am doing this in the correct event (onzoomchanged)? Or is there another event where I should do this check?

    Thanks,

    Thursday, January 3, 2013 5:50 PM