yackle / CLImageEditor

MIT License
2.22k stars 574 forks source link

When NavigationBar translucent = NO, ImageScroll View height is wrong #136

Open icykey opened 8 years ago

icykey commented 8 years ago

imageScroll view does not line up with the parent view when navigationBar.translucent is set to NO.

imageScroll.top is 0 when navigationBar.translucent is NO, but imageScroll view height still need to subtract the navigation height...

I changed this line _CLImageEditorViewController.m line 167

imageScroll.height = self.view.height - imageScroll.top - _menuView.height;

to

imageScroll.height = self.view.height - self.navigationController.navigationBar.bottom - _menuView.height;

seems to fix it.