[
https://issues.apache.org/jira/browse/CB-14118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alberto Hernández Cerezo updated CB-14118:
------------------------------------------
Description:
I am facing a problem with the iOS version of my project since I updated my
cordova-ios version to 4.5.4 (and now with 4.6.0).
It happens anytime I click on an input element and the keyboard gets displayed.
There is a constraint error that did not appear before and I don't know from
where it comes from:
{code:java}
[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:0x1c02995f0 h=-&- v=-&-
_UIToolbarContentView:0x1035988e0.width == UIToolbar:0x103598690.width
(active)>", "<NSLayoutConstraint:0x1c4282df0
H:|-(0)-[_UIButtonBarStackView:0x103652760] (active, names:
'|':_UIToolbarContentView:0x1035988e0 )>", "<NSLayoutConstraint:0x1c4282d50
_UIButtonBarStackView:0x103652760.trailing ==
_UIToolbarContentView:0x1035988e0.trailing + 8 (active)>",
"<NSLayoutConstraint:0x1c428a910 H:|-(0)-[_UIModernBarButton:0x10366eaf0]
(active, names: '|':_UIButtonBarButton:0x10366e4a0 )>",
"<NSLayoutConstraint:0x1c428a960 H:[_UIModernBarButton:0x10366eaf0]-(>=8)-|
(active, names: '|':_UIButtonBarButton:0x10366e4a0 )>",
"<NSLayoutConstraint:0x1c428af50 H:|-(>=5)-[_UIModernBarButton:0x10366f560]
(active, names: '|':_UIButtonBarButton:0x10366f310 )>",
"<NSLayoutConstraint:0x1c428afa0 H:[_UIModernBarButton:0x10366f560]-(>=5)-|
(active, names: '|':_UIButtonBarButton:0x10366f310 )>",
"<NSLayoutConstraint:0x1c428b900 H:|-(8)-[_UIModernBarButton:0x10366fce0'Done']
(active, names: '|':_UIButtonBarButton:0x10366fa90 )>",
"<NSLayoutConstraint:0x1c428b950 H:[_UIModernBarButton:0x10366fce0'Done']-(0)-|
(active, names: '|':_UIButtonBarButton:0x10366fa90 )>",
"<NSLayoutConstraint:0x1c0298010 'UISV-canvas-connection'
UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'.leading ==
_UIButtonBarButton:0x10366e4a0.leading (active)>",
"<NSLayoutConstraint:0x1c0298060 'UISV-canvas-connection'
UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'.trailing ==
_UIButtonBarButton:0x10366fa90.trailing (active)>",
"<NSLayoutConstraint:0x1c0298ba0 'UISV-spacing'
H:[_UIButtonBarButton:0x10366e4a0]-(0)-[UIView:0x10366f120] (active)>",
"<NSLayoutConstraint:0x1c0298bf0 'UISV-spacing'
H:[UIView:0x10366f120]-(0)-[_UIButtonBarButton:0x10366f310] (active)>",
"<NSLayoutConstraint:0x1c0298c40 'UISV-spacing'
H:[_UIButtonBarButton:0x10366f310]-(0)-[UIView:0x10366f8a0] (active)>",
"<NSLayoutConstraint:0x1c0298c90 'UISV-spacing'
H:[UIView:0x10366f8a0]-(0)-[_UIButtonBarButton:0x10366fa90] (active)>",
"<NSLayoutConstraint:0x1c02996e0 'UIView-Encapsulated-Layout-Width'
UIToolbar:0x103598690.width == 0 (active)>",
"<NSLayoutConstraint:0x1c4282fd0 'UIView-leftMargin-guide-constraint'
H:|-(0)-[UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'](LTR) (active,
names: '|':_UIButtonBarStackView:0x103652760 )>",
"<NSLayoutConstraint:0x1c4282f30 'UIView-rightMargin-guide-constraint'
H:[UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active,
names: '|':_UIButtonBarStackView:0x103652760 )>" )
{code}
After getting this error the APP keeps working fine. But in case I use the
inAppBrowser plugin and display an input element on a page, after closing the
browser and coming back to the APP it gets frozen.
I have tried by updating the Cordova iOS version and installing the cordova
keyboard plugin with not result (different solutions suggested on different
blogs).
was:
I am facing a problem with the iOS version of my project since I updated my
cordova-ios version to 4.5.4 (and now with 4.6.0).
It happens anytime I click on an input element and the keyboard gets displayed.
There is a constraint error that did not appear before and I don't know from
where it comes from:
{code:java}
[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:0x1c02995f0 h=-&- v=-&-
_UIToolbarContentView:0x1035988e0.width == UIToolbar:0x103598690.width
(active)>", "<NSLayoutConstraint:0x1c4282df0
H:|-(0)-[_UIButtonBarStackView:0x103652760] (active, names:
'|':_UIToolbarContentView:0x1035988e0 )>", "<NSLayoutConstraint:0x1c4282d50
_UIButtonBarStackView:0x103652760.trailing ==
_UIToolbarContentView:0x1035988e0.trailing + 8 (active)>",
"<NSLayoutConstraint:0x1c428a910 H:|-(0)-[_UIModernBarButton:0x10366eaf0]
(active, names: '|':_UIButtonBarButton:0x10366e4a0 )>",
"<NSLayoutConstraint:0x1c428a960 H:[_UIModernBarButton:0x10366eaf0]-(>=8)-|
(active, names: '|':_UIButtonBarButton:0x10366e4a0 )>",
"<NSLayoutConstraint:0x1c428af50 H:|-(>=5)-[_UIModernBarButton:0x10366f560]
(active, names: '|':_UIButtonBarButton:0x10366f310 )>",
"<NSLayoutConstraint:0x1c428afa0 H:[_UIModernBarButton:0x10366f560]-(>=5)-|
(active, names: '|':_UIButtonBarButton:0x10366f310 )>",
"<NSLayoutConstraint:0x1c428b900 H:|-(8)-[_UIModernBarButton:0x10366fce0'Done']
(active, names: '|':_UIButtonBarButton:0x10366fa90 )>",
"<NSLayoutConstraint:0x1c428b950 H:[_UIModernBarButton:0x10366fce0'Done']-(0)-|
(active, names: '|':_UIButtonBarButton:0x10366fa90 )>",
"<NSLayoutConstraint:0x1c0298010 'UISV-canvas-connection'
UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'.leading ==
_UIButtonBarButton:0x10366e4a0.leading (active)>",
"<NSLayoutConstraint:0x1c0298060 'UISV-canvas-connection'
UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'.trailing ==
_UIButtonBarButton:0x10366fa90.trailing (active)>",
"<NSLayoutConstraint:0x1c0298ba0 'UISV-spacing'
H:[_UIButtonBarButton:0x10366e4a0]-(0)-[UIView:0x10366f120] (active)>",
"<NSLayoutConstraint:0x1c0298bf0 'UISV-spacing'
H:[UIView:0x10366f120]-(0)-[_UIButtonBarButton:0x10366f310] (active)>",
"<NSLayoutConstraint:0x1c0298c40 'UISV-spacing'
H:[_UIButtonBarButton:0x10366f310]-(0)-[UIView:0x10366f8a0] (active)>",
"<NSLayoutConstraint:0x1c0298c90 'UISV-spacing'
H:[UIView:0x10366f8a0]-(0)-[_UIButtonBarButton:0x10366fa90] (active)>",
"<NSLayoutConstraint:0x1c02996e0 'UIView-Encapsulated-Layout-Width'
UIToolbar:0x103598690.width == 0 (active)>",
"<NSLayoutConstraint:0x1c4282fd0 'UIView-leftMargin-guide-constraint'
H:|-(0)-[UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'](LTR) (active,
names: '|':_UIButtonBarStackView:0x103652760 )>",
"<NSLayoutConstraint:0x1c4282f30 'UIView-rightMargin-guide-constraint'
H:[UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active,
names: '|':_UIButtonBarStackView:0x103652760 )>" )
{code}
I have tried by updating the Cordova iOS version and installing the cordova
keyboard plugin with not result (different solutions suggested on different
blogs).
> iOS 11 UIViewAlertForUnsatisfiableConstraints Error when displaying Keyboard
> ----------------------------------------------------------------------------
>
> Key: CB-14118
> URL: https://issues.apache.org/jira/browse/CB-14118
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-ios
> Affects Versions: [email protected], [email protected]
> Reporter: Alberto Hernández Cerezo
> Assignee: Suraj Pindoria
> Priority: Major
> Labels: bug
>
> I am facing a problem with the iOS version of my project since I updated my
> cordova-ios version to 4.5.4 (and now with 4.6.0).
> It happens anytime I click on an input element and the keyboard gets
> displayed. There is a constraint error that did not appear before and I don't
> know from where it comes from:
> {code:java}
> [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:0x1c02995f0 h=-&- v=-&-
> _UIToolbarContentView:0x1035988e0.width == UIToolbar:0x103598690.width
> (active)>", "<NSLayoutConstraint:0x1c4282df0
> H:|-(0)-[_UIButtonBarStackView:0x103652760] (active, names:
> '|':_UIToolbarContentView:0x1035988e0 )>",
> "<NSLayoutConstraint:0x1c4282d50 _UIButtonBarStackView:0x103652760.trailing
> == _UIToolbarContentView:0x1035988e0.trailing + 8 (active)>",
> "<NSLayoutConstraint:0x1c428a910 H:|-(0)-[_UIModernBarButton:0x10366eaf0]
> (active, names: '|':_UIButtonBarButton:0x10366e4a0 )>",
> "<NSLayoutConstraint:0x1c428a960 H:[_UIModernBarButton:0x10366eaf0]-(>=8)-|
> (active, names: '|':_UIButtonBarButton:0x10366e4a0 )>",
> "<NSLayoutConstraint:0x1c428af50 H:|-(>=5)-[_UIModernBarButton:0x10366f560]
> (active, names: '|':_UIButtonBarButton:0x10366f310 )>",
> "<NSLayoutConstraint:0x1c428afa0 H:[_UIModernBarButton:0x10366f560]-(>=5)-|
> (active, names: '|':_UIButtonBarButton:0x10366f310 )>",
> "<NSLayoutConstraint:0x1c428b900
> H:|-(8)-[_UIModernBarButton:0x10366fce0'Done'] (active, names:
> '|':_UIButtonBarButton:0x10366fa90 )>", "<NSLayoutConstraint:0x1c428b950
> H:[_UIModernBarButton:0x10366fce0'Done']-(0)-| (active, names:
> '|':_UIButtonBarButton:0x10366fa90 )>", "<NSLayoutConstraint:0x1c0298010
> 'UISV-canvas-connection'
> UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'.leading ==
> _UIButtonBarButton:0x10366e4a0.leading (active)>",
> "<NSLayoutConstraint:0x1c0298060 'UISV-canvas-connection'
> UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'.trailing ==
> _UIButtonBarButton:0x10366fa90.trailing (active)>",
> "<NSLayoutConstraint:0x1c0298ba0 'UISV-spacing'
> H:[_UIButtonBarButton:0x10366e4a0]-(0)-[UIView:0x10366f120] (active)>",
> "<NSLayoutConstraint:0x1c0298bf0 'UISV-spacing'
> H:[UIView:0x10366f120]-(0)-[_UIButtonBarButton:0x10366f310] (active)>",
> "<NSLayoutConstraint:0x1c0298c40 'UISV-spacing'
> H:[_UIButtonBarButton:0x10366f310]-(0)-[UIView:0x10366f8a0] (active)>",
> "<NSLayoutConstraint:0x1c0298c90 'UISV-spacing'
> H:[UIView:0x10366f8a0]-(0)-[_UIButtonBarButton:0x10366fa90] (active)>",
> "<NSLayoutConstraint:0x1c02996e0 'UIView-Encapsulated-Layout-Width'
> UIToolbar:0x103598690.width == 0 (active)>",
> "<NSLayoutConstraint:0x1c4282fd0 'UIView-leftMargin-guide-constraint'
> H:|-(0)-[UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide'](LTR) (active,
> names: '|':_UIButtonBarStackView:0x103652760 )>",
> "<NSLayoutConstraint:0x1c4282f30 'UIView-rightMargin-guide-constraint'
> H:[UILayoutGuide:0x1c41bdea0'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active,
> names: '|':_UIButtonBarStackView:0x103652760 )>" )
> {code}
> After getting this error the APP keeps working fine. But in case I use the
> inAppBrowser plugin and display an input element on a page, after closing the
> browser and coming back to the APP it gets frozen.
> I have tried by updating the Cordova iOS version and installing the cordova
> keyboard plugin with not result (different solutions suggested on different
> blogs).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]