Fix measuring of collapsible tabs

There is this problem where the width of Twinkle is not taken into account for the collapsible tabs, sometimes leading to the whole 'right navigation' falling down into the content space due to lack of horizontal space. This is not desirable of course.

This is one way of fixing that. Alternatively, we could trigger a resize event on widow as well.