Merge pull request #29 from krinkinmu/rational-resizing-policy