The initial challenge
The basic idea of that algorithm is to determine first the needed space – we call it the “rest” – above and below the control add-in. We manage this by stretching the add-in to a huge firm value and then retrieving the scroll height of the container. At last, the available height can be calculated by subtracting the rest from the scroll height. This approach is working fine with NAV 2013 R2 as well as with NAV 2015.
What changed with Dynamics NAV 2016
What does the trick in Dynamics NAV 2016
We found out that there is a new element that is identifiable by its CSS class name “ms-nav-scrollable”. This element is available in the NAV Windows client as well as in the Web and the Tablet client of NAV and we can use it instead of the above mentioned scroll container. The following code snippet shows you our new approach:
Have a better idea? Let me know.
What you can do next
Have clients, who require a visual planning board for their manufacturing orders, and who want to see this planning board consistently across all devices? Here is the good news: you do not need to develop this for them. It already exists and we are happy to share and collaborate.