force calculated width/heights back to context, fore firefox compatibility