First row in CPTableView and CPOutlineView doesn't respect CPLineBreakByWordWrapping #1661

Closed
raresp opened this Issue Aug 24, 2012 · 9 comments

Comments

Projects
None yet
4 participants

raresp commented Aug 24, 2012

In both CPTableView and CPOutlineView any text inside a cell view that has defined lineBreakMode to CPLineBreakByWordWrapping is not broken across lines in the first row.

The second and the other rows are fine, the text gets broken.

Also, if the view is inside a scrollview, scrolling will immediately break the line.

[dataView setLineBreakMode:CPLineBreakByWordWrapping];

See some snapshots here:

  1. http://labs.classys.net/attachments/download/11/Screen%20Shot%202012-08-24%20at%204.44.20%20PM.png
  2. http://labs.classys.net/attachments/download/12/Screen%20Shot%202012-08-24%20at%204.49.13%20PM.png

Using latest cappuccino from the head.

cappbot commented Aug 24, 2012

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

Contributor

ahankinson commented Feb 18, 2013

The test project seems to have gone missing.

-#new
+bug
+#needs-confirmation
+#needs-reduction

cappbot commented Feb 18, 2013

Milestone: Someday. Labels: #needs-confirmation, #needs-reduction, bug. What's next?

  • This issue needs a volunteer to independently reproduce the issue.
  • A minimal test app should be created which demonstrates the concern of this issue in isolation.
Contributor

ahankinson commented Feb 18, 2013

Thanks. Looks like this is still an issue.

-#needs-reduction
-#needs-confirmation
+#needs-review

cappbot commented Feb 18, 2013

Milestone: Someday. Labels: #needs-review, bug. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on.

Contributor

aparajita commented Feb 26, 2013

There are two problems:

  1. NSTextField is not encoding the text wrapping attribute from the xib.
  2. You don't change the data view in tableView:objectValueForTableColumn:, that is too late, you need to make the table view an outlet or under a view controller and change the data view when the table is loaded from the cib.

I will open a separate issue for the NSTextField bug.

#wont-fix

cappbot commented Feb 26, 2013

Milestone: Someday. Labels: #wont-fix, bug. What's next? A reviewer or core team member has decided against acting upon this issue.

@cappbot cappbot closed this Feb 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment