Provide a DTAttributedTextContentView with a maximum height #245

Closed
epologee opened this Issue Nov 26, 2012 · 1 comment

Projects

None yet

2 participants

@epologee

Hi there,

Three projects into using DTAttributedTextContentView the issue finally arose: my content view needed a maximum height. I could not find any references to doing this either in the DTCoreText code or in the issues here on github, and maybe I'm just not seeing the forest for the trees, but by adding these three lines I got it to work: epologee/DTCoreText@c368ebe

Does DTCoreText already provide a way to do this?

Cheers,
Eric-Paul.

@odrobnik
Collaborator
odrobnik commented Jan 5, 2013

@epologee DTAttributedTextContentView usually takes the bounds of the view as the maximum height. If you want to specify the height disconnected from the view height then you would create a layout frame with the given maximum bounds and then set the layoutFrame on the content view with the one you created.

@odrobnik odrobnik closed this Jan 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment