MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / makeMeasureSpec

Function makeMeasureSpec

packages/core/utils/layout-helper/index.ios.ts:31–33  ·  view source on GitHub ↗
(size: number, mode: number)

Source from the content-addressed store, hash-verified

29 }
30
31 export function makeMeasureSpec(size: number, mode: number): number {
32 return (Math.round(Math.max(0, size)) & ~MODE_MASK) | (mode & MODE_MASK);
33 }
34
35 export function hasRtlSupport(): boolean {
36 return true;

Callers 5

_checkSizeConstraintsMethod · 0.50
_expandFlexItemsMethod · 0.50
_shrinkFlexItemsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected