<script src="http://code.angularjs.org/angular-1.0.0rc8.js"></script>
<div ng-controller="MyCtrl">
Position of box {{debug}}
<button ng-click="update()">update</button>
<br>
<span class="light">Position should update automatically when change the size of the display window... <br> But it doesn't. Only when clicking the update button.</span>
<floater id="ud" class="floater"></floater>
</div>