Fix panes dimensions in horizontal and especially vertical layout