Skip to content

Commit

Permalink
fix(ui): adjust transform origin in application resource tree (#20180)
Browse files Browse the repository at this point in the history
Signed-off-by: srikanth597 <alapatisrikanth597@gmail.com>
  • Loading branch information
srikanth597 authored Oct 7, 2024
1 parent ae183ad commit 7718af1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ export const ApplicationResourceTree = (props: ApplicationResourceTreeProps) =>
onPointerUp={onGraphDragEnd}
onPointerLeave={onGraphDragEnd}
className={classNames('application-resource-tree', {'application-resource-tree--network': props.useNetworkingHierarchy})}
style={{width: size.width + 150, height: size.height + 250, transformOrigin: '0% 0%', transform: `scale(${props.zoom})`}}>
style={{width: size.width + 150, height: size.height + 250, transformOrigin: '0% 4%', transform: `scale(${props.zoom})`}}>
{graphNodes.map(key => {
const node = graph.node(key);
const nodeType = node.type;
Expand Down

0 comments on commit 7718af1

Please sign in to comment.