CKDimension
Summary: [rsrbk@devvm3461.lla0 /data/users/rsrbk/fbsource/fbobjc] fastmod --accept-all CKRelativeDimension RCRelativeDimension [rsrbk@devvm3461.lla0 /data/users/rsrbk/fbsource/fbobjc] fastmod --accept-all CKRelativeSize RCRelativeSize [rsrbk@devvm3461.lla0 /data/users/rsrbk/fbsource/fbobjc] fastmod --accept-all ComponentKit/RCDimension.h RenderCore/RCDimension.h Reviewed By: kfirapps Differential Revision: D26228615 fbshipit-source-id: 9c06128b324e1c6ece6fc21fbab1c041e5f5825a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2cb46cf3e2
commit
651c527e94
@@ -73,9 +73,9 @@ function keyLookup(key: string): string {
|
|||||||
|
|
||||||
function getValue(value) {
|
function getValue(value) {
|
||||||
if (typeof value === 'string' && /%$/.test(value)) {
|
if (typeof value === 'string' && /%$/.test(value)) {
|
||||||
return `CKRelativeDimension::Percent(${parseFloat(value)})`;
|
return `RCRelativeDimension::Percent(${parseFloat(value)})`;
|
||||||
} else if (value === 'auto') {
|
} else if (value === 'auto') {
|
||||||
return 'CKRelativeDimension::Auto()';
|
return 'RCRelativeDimension::Auto()';
|
||||||
} else {
|
} else {
|
||||||
return String(parseFloat(value));
|
return String(parseFloat(value));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user