Closed Bug 1223890 Opened 9 years ago Closed 9 years ago

Constraint errors in history panel

Categories

(Firefox for iOS :: General, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: bnicholson, Assigned: n0-0ne+mozilla)

Details

Attachments

(1 file)

48 bytes, text/x-github-pull-request
bnicholson
: review+
Details | Review
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.
Attached file Pull request
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)
Assignee: nobody → johannesmarbach
Status: NEW → ASSIGNED
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+
Still see this on master
Thanks for reviewing Brian. I adapted the PR based on your comments. Is there anything else I should do?
Flags: needinfo?(bnicholson)
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+
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.

Attachment

General

Created:
Updated:
Size: