In what way does it "not fit"? Is it bigger or smaller than the view?
BTW. Are you aware that the view will only have its size determined after it is shown for the first time? Asking for its size before it is shown for the first time will return bogus data... And it seems to be what is happening here.
Bookmarks