Closed
Bug 1223890
Opened 9 years ago
Closed 9 years ago
Constraint errors in history panel
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fxios | + | --- |
People
(Reporter: bnicholson, Assigned: n0-0ne+mozilla)
Details
Attachments
(1 file)
When selecting the history panel:
2015-11-11 10:20:05.343 Client[16187:968175] 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.
(
"<SnapKit.LayoutConstraint:0x7fb6ea620d70@/Users/brian/mozilla/ios/Client/Frontend/Widgets/SiteTableViewController.swift#55 UILabel:0x7fb6e85f8030.left == _UITableViewHeaderFooterContentView:0x7fb6e85e9ae0.left + 10.0>",
"<SnapKit.LayoutConstraint:0x7fb6ea621c50@/Users/brian/mozilla/ios/Client/Frontend/Widgets/SiteTableViewController.swift#55 UILabel:0x7fb6e85f8030.right == _UITableViewHeaderFooterContentView:0x7fb6e85e9ae0.right - 10.0>",
"<NSLayoutConstraint:0x7fb6ea622b30 'UIView-Encapsulated-Layout-Width' H:[_UITableViewHeaderFooterContentView:0x7fb6e85e9ae0(0)]>"
)
Will attempt to recover by breaking constraint
<SnapKit.LayoutConstraint:0x7fb6ea621c50@/Users/brian/mozilla/ios/Client/Frontend/Widgets/SiteTableViewController.swift#55 UILabel:0x7fb6e85f8030.right == _UITableViewHeaderFooterContentView:0x7fb6e85e9ae0.right - 10.0>
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.
Assignee | ||
Comment 1•9 years ago
|
||
The section header views are initially created with a zero width and height which conflicts with the required leading and trailing space around the title label. Reducing the priority of constraints kills the warnings on the console.
Attachment #8687671 -
Flags: review?(bnicholson)
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → johannesmarbach
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8687671 [details] [review]
Pull request
Thanks for fixing this! Just a couple comments in the PR.
Attachment #8687671 -
Flags: review?(bnicholson) → feedback+
Updated•9 years ago
|
Comment 3•9 years ago
|
||
Still see this on master
Assignee | ||
Comment 4•9 years ago
|
||
Thanks for reviewing Brian. I adapted the PR based on your comments. Is there anything else I should do?
Flags: needinfo?(bnicholson)
Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8687671 [details] [review]
Pull request
Ah, this fell of my radar -- thanks for flagging me! Fix looks good to me :)
Flags: needinfo?(bnicholson)
Attachment #8687671 -
Flags: feedback+ → review+
Reporter | ||
Comment 6•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•