daboe01
4959b84b4c
fixed: implicit casting of NULL aWith argument to string in _sizeWithFont:inWidth:
2016-12-02 22:08:48 +01:00
daboe01
80d1e9a9a7
fixed: ceiling the sizing width caused subtle issues with CPTextView
2016-11-15 22:43:24 +01:00
daboe01
66c9a1e90a
ceil is a better solution than adding one
2016-11-11 23:02:57 +01:00
daboe01
a1925e1d0b
fixed: the canvas sizing and DOM sizing differed by 1px
2016-11-08 19:52:45 +01:00
daboe01 and cacaodev
126cba1e94
Fixed: textsizing was wrong in safari ( #2486 )
...
* fixed: color panel creation in font panel init did break text sizing in safari
* fixed: font sizing did not robustly work on safari
* removal of dead code
* fixed: browser sniffing was not using the mechanisms from CPCompatibility.j
* fixed: blink and webkit engines must not be mutually exclusive
* improved documentation
2016-10-16 10:11:10 +02:00
daboe01
8cfd3aeda9
fixed: sizing cache was not set up correctly
2016-09-09 20:31:53 +02:00
daboe01
ea58d84b55
fixed: text sizing was slower than it should be
...
thanks mrcarlberg for spotting this
2016-09-01 13:25:12 +02:00
daboe01
59de0e7a4a
fixed: text sizing did not work for javascript function names
2016-05-23 17:14:13 +02:00
Alexandre Wilhelm
2cb6ddf3ca
Fixed: document was not wrap in a #if PLATFORM
2015-07-07 11:14:56 -07:00
daboe01
af7de73f5c
fix dom protection
2015-07-04 19:24:52 +02:00
daboe01
1a8a9f0047
make dom protection more stringent
2015-07-04 19:17:22 +02:00
daboe01
e4c11d9a88
various fixes
2015-07-03 23:13:57 +02:00
daboe01
6d1d8da101
recursion fix
2015-07-03 22:56:58 +02:00
daboe01
77303e668f
fix missing reference
2015-07-03 21:03:28 +02:00
daboe01
72725b91c7
fix undefined constant
2015-07-03 20:56:14 +02:00
daboe01
c8e6dca263
small refactoring of string sizing init
2015-05-20 19:42:03 +02:00
daboe01
9dec40eca7
init refactoring + cachekey fix
2015-05-20 05:58:32 +02:00
daboe01
4896043599
fix caching issue with numeric strings
2015-05-19 20:22:55 +02:00
daboe01
8b81506ed3
fix aWidth usecase
2015-05-11 05:56:52 +02:00
daboe01
9c93ab0b6d
fixed confusion between font an cssString
2015-05-10 15:30:40 +02:00
daboe01
6646a20a5d
DOM protection
2015-05-10 15:22:56 +02:00
daboe01
92f471c476
move fontHeight to where it is needed
2015-05-10 15:19:26 +02:00
daboe01
4c7ce97650
measureText return type
2015-05-10 15:16:12 +02:00
daboe01
4d1fc994c0
refactor private sizing method to sizeWithFont:
2015-05-10 15:12:31 +02:00
Aparajita Fishman
866e1f00f7
Objj2 compiler fixes
...
- Each file compiles individually with no errors or warnings.
- Added missing imports.
- Fixed imports to remove circularity.
- Removed unnecessary imports.
- Added missing headers.
- Added missing action_button.png.
- Replace CPMakeRect with CGRectMake.
2013-01-23 15:48:56 +07:00
Aparajita Fishman
4f377bcebe
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Misc. code cleanup.
Conflicts:
AppKit/CPWindow/_CPWindow.j
AppKit/Platform/DOM/CPPlatformWindow+DOM.j
2013-01-23 15:48:55 +07:00
Francisco Ryan Tolmasky I
52f7844aee
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
...
Also changed a bunch of <AppKit/*> imports to "*" imports.
Reviewed by me.
2010-11-01 11:10:01 -07:00
Klaas Pieter Annema
71d02abc28
add global to disable string size caching
2010-10-21 17:36:09 +02:00
Alexander Ljungberg and Klaas Pieter Annema
367efe590e
Fixed with the new string size optimisation: the cache value was returned by reference and something in the CPButton path for image and text buttons changed it causing text to become misaligned. A defensive copy avoids this problem.
2010-10-21 17:36:09 +02:00
Klaas Pieter Annema
afcce49455
improve CPString sizeOfString performance by caching the calculated result
2010-10-21 17:36:09 +02:00
Aparajita Fishman and Alexander Ljungberg
4f2914a123
Implementation of CPFont -ascender, -descender and -defaultLineHeightForFont, supporting method +metricsOfFont in CPStringDrawing and CPPlatformString, and Font Metrics Explorer test app.
2010-08-27 14:32:03 -04:00
Francisco Ryan Tolmasky I
8382bb1ae8
Beginnings of Platform reorg.
...
Reviewed by me.
2009-07-25 16:47:30 -07:00
Ross Boucher
a5ef85c676
Mistake
2009-05-13 11:48:22 -07:00
Ross Boucher
41f3146c47
Segmented controls with improved theming and nib2cibing
2009-05-10 21:06:22 -07:00
Francisco Tolmasky
44d837c1eb
A number of improvements to theming and bug fixes.
...
Reviewed by me.
2009-02-13 01:48:44 -08:00
Francisco Ryan Tolmasky I
b0d5ca2830
Added vertical alignment support to _CPImageAndTextView.
...
Reviewed by me.
2009-01-26 22:35:01 -08:00
Francisco Ryan Tolmasky I
5144a5a579
Added @accessor support, @import, and fixed spacing bug with @selector.
...
Reviewed by ross.
2008-10-26 00:48:49 -07:00
Ross Boucher
f228934e54
Initial conversion to Doxygen style comments.
2008-10-12 15:57:01 -07:00
Ross Boucher
a40fbd7961
Add the first draft of documentation inline.
2008-09-10 15:11:37 -07:00
Francisco Ryan Tolmasky I
a97bb72800
Initial commit.
...
Reviewed by francisco, ross and tom.
2008-09-04 03:52:20 -07:00