Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 11 获取焦点后滚动到不可见区域 #9

Open
LBingRun opened this issue Dec 20, 2017 · 2 comments
Open

iOS 11 获取焦点后滚动到不可见区域 #9

LBingRun opened this issue Dec 20, 2017 · 2 comments

Comments

@LBingRun
Copy link

No description provided.

@mrZombie2016
Copy link

同,应该没维护了

@mrZombie2016
Copy link

不过可以改一下:在WPViewController.m里加一句:

self.automaticallyAdjustsScrollViewInsets = NO;

WPEditorView..m里的方法里- (void)createWebViewWithFrame:(CGRect)frame加:

if (@available(iOS 11.0, *)) {
        _webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    } else {
        // Fallback on earlier versions
    }

这样就可以解决偏移问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants