Inactive tab element positioning

Continuing the discussion from Please help test: Angular 1.3, improved transitions, cached views, etc:

So I have tried applying the tabs to my application. In my application websocket messages are received and directive-based widgets on the page move around. The problem is that, to position themselves properly, they have to reference things like clientWidth. So say i have an widget, a websocket message comes in and the widget’s position on screen should be updated to element.clientWidth + socketmessage.x

When i have that tab (tab1) visible it works as expected. But if i am on another tab (tab2), if a websocket message is received, element.clientWidth on tab1 evaluates to 0. So if i click back on tab1, the widget is not in the correct position. How can i get proper positioning on elements on an inactive tab?