Skip to content

Commit

Permalink
CKDimension
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rsrbk authored and facebook-github-bot committed Feb 11, 2021
1 parent 2cb46cf commit 651c527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/components/Playground/src/CodeComponentKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ function keyLookup(key: string): string {

function getValue(value) {
if (typeof value === 'string' && /%$/.test(value)) {
return `CKRelativeDimension::Percent(${parseFloat(value)})`;
return `RCRelativeDimension::Percent(${parseFloat(value)})`;
} else if (value === 'auto') {
return 'CKRelativeDimension::Auto()';
return 'RCRelativeDimension::Auto()';
} else {
return String(parseFloat(value));
}
Expand Down

0 comments on commit 651c527

Please sign in to comment.