Tom King
d0edbe809a
ensure that the truncater is initialized before the context is in _calculateSize
2016-01-29 09:32:40 -05:00
appleguy
2c194fd924
Merge pull request #1140 from rcancro/textNodeWordSpacing
...
[ASTextNode] Added ASTextNodeWordKerner support
2016-01-28 15:38:00 -08:00
rcancro
7f6f2fed11
Added ASTextNodeWordKerner support to ASTextNode
...
* Added a member to `ASTextKitAttributes` that is an optional delegate to the struct's NSLayoutManager.
* Changed ASTextNode to set this delegate to an instance of ASTextNodeWordKerner.
* Updated init method of `ASTextKitContext` to take an optional NSLayoutManager delegate
* Added the files in TextKit folder to the public headers (so we can include ASTextNodeTypes.h)
2016-01-28 08:38:22 -08:00
Luke Zhao
733c65d1eb
fix bug: constraint size not updated for frontsizeadjuster
2016-01-27 13:49:00 -08:00
appleguy
508e3db8ee
Merge pull request #1091 from lkzhao/ASTextKitFontSizeAdjuster
...
[ASTextNode] Support iteratively shrinking font size in order to ensure no single words are wrapped.
2016-01-25 19:36:39 -08:00
Luke Zhao
f413a618e0
add ASTextKitFontSizeAdjuster
2016-01-25 19:07:28 -08:00
yury
313a3cc63c
Create Truncater with context. So it will actually truncate string in its initializer
2016-01-25 16:48:55 +03:00
Scott Goodson
9ddf68fa96
[ASTextNode] Optimize handling of constrained size to almost never recreate NSLayoutManager
...
This also fixes two fairly subtle but serious bugs, #1076 and #1046 .
2016-01-24 00:50:43 -08:00
Aaron Schubert
10a2984d8c
Potential fix for #1076
2016-01-19 12:25:30 +00:00
Scott Goodson
99fbc97bda
Optimizations for ASTextNode handling of renderer allocation and deallocation.
...
Optimizations for ASDisplayNode handling of bridged property "contentMode", especially for layer-backed nodes.
2015-12-25 01:36:32 -08:00
Levi McCallum
a0c05ebffc
Rename CK classes to AS classes
2015-11-30 06:44:53 -08:00