I've tried this, but it still doesn't work. At this point I suspect that the problem is not with the resizing of the frame, but of the toplevel widget in which the frame lives. I've been tinkering with that, but still without success.