Skip to content

Commit 9ec09e3

Browse files
authored
Merge pull request #27 from Kennytian/fixbug/ios-webview-bug
Fixes webview bug on iOS
2 parents a6ec7e4 + 0057096 commit 9ec09e3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ios/MeiQiaSDK/MQChatViewController/TableCells/CellView/MQBotWebViewBubbleAnswerCell.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ - (MQEmbededWebView *)contentWebView {
182182
if (!_contentWebView) {
183183
_contentWebView = [MQEmbededWebView new];
184184
_contentWebView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
185+
_contentWebView.scrollView.scrollEnabled = YES;
185186
}
186187
return _contentWebView;
187188
}
@@ -244,7 +245,7 @@ - (UIView *)evaluateView {
244245
lineV.viewHeight = HEIHGT_VIEW_EVALUATE;
245246
lineV.viewWidth = 0.5;
246247
[lineV align:(ViewAlignmentTopLeft) relativeToPoint:usefulButton.rightTopCorner];
247-
lineV.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
248+
lineV.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
248249

249250
UIButton *uselessButton = [UIButton new];
250251
[uselessButton setTitleColor:[MQChatViewConfig sharedConfig].chatViewStyle.btnTextColor forState:(UIControlStateNormal)];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{
33
"name": "meiqia-react-native",
4-
"version": "0.1.3",
4+
"version": "0.1.4",
55
"description": "MeiQia sdk component for React Native",
66
"main": "index.js",
77
"scripts": {

0 commit comments

Comments
 (0)