Skip to content

Commit

Permalink
Merge branch 'master' into bump-version-1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mansbernhardt authored Oct 27, 2018
2 parents 6c113f4 + 0f64c74 commit 3fa0116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Added `UITextField` and `UIScrollView` `install()` delegate helpers.
- Added remaining methods to `ScrollViewDelegete`.
- Added `GestureRecognizerDelegate`.
- Fixed a bug in `UIScrollView.adjustContentOffset` for scrollviews with a non-zero `frame.origin.y`.

## 1.3.3
- Bugfix: Remove hardcoded value used for determing smallest resizable image size causing not smooth borders of rounded images
Expand Down
4 changes: 1 addition & 3 deletions Form/UIScrollView+Keyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ private extension UIScrollView {
func adjustContentOffset(_ adjustInsets: (UIView) -> UIEdgeInsets) {
guard let firstResponder = firstResponder as? UIView else { return }

var bounds = frame // Can't use a scroll views bounds directly.
bounds.origin = .zero
let viewRect = UIEdgeInsetsInsetRect(bounds, contentInset)
let viewRect = UIEdgeInsetsInsetRect(frame, contentInset)
let firstBounds = UIEdgeInsetsInsetRect(firstResponder.bounds, adjustInsets(firstResponder))
let firstFrame = convert(firstBounds, from: firstResponder)

Expand Down

0 comments on commit 3fa0116

Please sign in to comment.