cordova-plugin-keyboard
cordova-plugin-keyboard copied to clipboard
iOS black Shadow
Hi,
We started to use your plugin because we haven't found any other solution to shrink the webView instead of letting the keyboard go above of the screen. It's working well but on the screen we got a black shadow during the keyboard show animation. It seems to me the webview has been shrinked earlier than the keyboard fully appears.
We also got this exception on the console:
2018-01-22 10:29:30.165933+0100 Felleskatalogen[6258:4019664] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-01-22 10:29:30.167176+0100 Felleskatalogen[6258:4019664] [MC] Reading from public effective user settings.
2018-01-22 10:29:30.194418+0100 Felleskatalogen[6258:4019664] API error: <_UIKBCompatInputView: 0x105e09950; frame = (0 0; 0 0); layer = <CALayer: 0x1c023a6a0>> returned 0 width, assuming UIViewNoIntrinsicMetric
2018-01-22 10:29:30.194538+0100 Felleskatalogen[6258:4019664] API error: <_UIKBCompatInputView: 0x105e09950; frame = (0 0; 0 0); layer = <CALayer: 0x1c023a6a0>> returned 0 width, assuming UIViewNoIntrinsicMetric
2018-01-22 10:29:30.265352+0100 Felleskatalogen[6258:4019664] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x1c42878f0 h=-&- v=-&- _UIToolbarContentView:0x105e38850.width == UIToolbar:0x107120a80.width (active)>",
"<NSLayoutConstraint:0x1c028e100 H:|-(8)-[_UIButtonBarStackView:0x105e541f0] (active, names: '|':_UIToolbarContentView:0x105e38850 )>",
"<NSLayoutConstraint:0x1c02947d0 _UIButtonBarStackView:0x105e541f0.trailing == _UIToolbarContentView:0x105e38850.trailing (active)>",
"<NSLayoutConstraint:0x1c029dc90 H:|-(8)-[_UIModernBarButton:0x1071270c0] (active, names: '|':_UIButtonBarButton:0x107126c70 )>",
"<NSLayoutConstraint:0x1c029dce0 H:[_UIModernBarButton:0x1071270c0]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x107126c70 )>",
"<NSLayoutConstraint:0x1c029e2d0 H:|-(>=5)-[_UIModernBarButton:0x105e752e0] (active, names: '|':_UIButtonBarButton:0x105e7ceb0 )>",
"<NSLayoutConstraint:0x1c029e320 H:[_UIModernBarButton:0x105e752e0]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x105e7ceb0 )>",
"<NSLayoutConstraint:0x1c029ee10 H:|-(8)-[_UIModernBarButton:0x105e6e3b0'K\U00e9sz'] (active, names: '|':_UIButtonBarButton:0x105e75c00 )>",
"<NSLayoutConstraint:0x1c029ee60 H:[_UIModernBarButton:0x105e6e3b0'K\U00e9sz']-(8)-| (active, names: '|':_UIButtonBarButton:0x105e75c00 )>",
"<NSLayoutConstraint:0x1c4286e00 'UISV-canvas-connection' UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x107126c70.leading (active)>",
"<NSLayoutConstraint:0x1c4286e50 'UISV-canvas-connection' UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x105e75c00.trailing (active)>",
"<NSLayoutConstraint:0x1c4286ea0 'UISV-spacing' H:[_UIButtonBarButton:0x107126c70]-(0)-[UIView:0x105e7ccd0] (active)>",
"<NSLayoutConstraint:0x1c4286ef0 'UISV-spacing' H:[UIView:0x105e7ccd0]-(0)-[_UIButtonBarButton:0x105e7ceb0] (active)>",
"<NSLayoutConstraint:0x1c4286f40 'UISV-spacing' H:[_UIButtonBarButton:0x105e7ceb0]-(0)-[UIView:0x105e75a20] (active)>",
"<NSLayoutConstraint:0x1c4286f90 'UISV-spacing' H:[UIView:0x105e75a20]-(0)-[_UIButtonBarButton:0x105e75c00] (active)>",
"<NSLayoutConstraint:0x1c42879e0 'UIView-Encapsulated-Layout-Width' UIToolbar:0x107120a80.width == 0 (active)>",
"<NSLayoutConstraint:0x1c0291c60 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x105e541f0 )>",
"<NSLayoutConstraint:0x1c02942d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x105e541f0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1c029dce0 H:[_UIModernBarButton:0x1071270c0]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x107126c70 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2018-01-22 10:29:30.268533+0100 Felleskatalogen[6258:4019664] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x1c42878f0 h=-&- v=-&- _UIToolbarContentView:0x105e38850.width == UIToolbar:0x107120a80.width (active)>",
"<NSLayoutConstraint:0x1c028e100 H:|-(8)-[_UIButtonBarStackView:0x105e541f0] (active, names: '|':_UIToolbarContentView:0x105e38850 )>",
"<NSLayoutConstraint:0x1c02947d0 _UIButtonBarStackView:0x105e541f0.trailing == _UIToolbarContentView:0x105e38850.trailing (active)>",
"<NSLayoutConstraint:0x1c029e2d0 H:|-(>=5)-[_UIModernBarButton:0x105e752e0] (active, names: '|':_UIButtonBarButton:0x105e7ceb0 )>",
"<NSLayoutConstraint:0x1c029e320 H:[_UIModernBarButton:0x105e752e0]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x105e7ceb0 )>",
"<NSLayoutConstraint:0x1c029ee10 H:|-(8)-[_UIModernBarButton:0x105e6e3b0'K\U00e9sz'] (active, names: '|':_UIButtonBarButton:0x105e75c00 )>",
"<NSLayoutConstraint:0x1c029ee60 H:[_UIModernBarButton:0x105e6e3b0'K\U00e9sz']-(8)-| (active, names: '|':_UIButtonBarButton:0x105e75c00 )>",
"<NSLayoutConstraint:0x1c4286e00 'UISV-canvas-connection' UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x107126c70.leading (active)>",
"<NSLayoutConstraint:0x1c4286e50 'UISV-canvas-connection' UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x105e75c00.trailing (active)>",
"<NSLayoutConstraint:0x1c4286ea0 'UISV-spacing' H:[_UIButtonBarButton:0x107126c70]-(0)-[UIView:0x105e7ccd0] (active)>",
"<NSLayoutConstraint:0x1c4286ef0 'UISV-spacing' H:[UIView:0x105e7ccd0]-(0)-[_UIButtonBarButton:0x105e7ceb0] (active)>",
"<NSLayoutConstraint:0x1c4286f40 'UISV-spacing' H:[_UIButtonBarButton:0x105e7ceb0]-(0)-[UIView:0x105e75a20] (active)>",
"<NSLayoutConstraint:0x1c4286f90 'UISV-spacing' H:[UIView:0x105e75a20]-(0)-[_UIButtonBarButton:0x105e75c00] (active)>",
"<NSLayoutConstraint:0x1c42879e0 'UIView-Encapsulated-Layout-Width' UIToolbar:0x107120a80.width == 0 (active)>",
"<NSLayoutConstraint:0x1c0291c60 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UIButtonBarStackView:0x105e541f0 )>",
"<NSLayoutConstraint:0x1c02942d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1c01a4360'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x105e541f0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1c029e320 H:[_UIModernBarButton:0x105e752e0]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x105e7ceb0 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Any help would be appreciated. Keep up the good work.
same issue
Same issue