FIX: resize event is only called on the first pane