kunwp1 commented on code in PR #9199:
URL: https://github.com/apache/texera/pull/9199#discussion_r4407354433
##########
frontend/src/app/workspace/component/agent/agent-panel/agent-panel.component.ts:
##########
@@ -376,7 +367,6 @@ export class AgentPanelComponent implements OnInit,
OnDestroy, OnChanges {
const translates = container.style.transform;
const [xOffset, yOffset] = calculateTotalTranslate3d(translates);
this.returnPosition = { x: -xOffset, y: -yOffset };
Review Comment:
With `isDocked` gone, nothing reads `returnPosition` anymore, since it only
fed the docked check. These three lines, the field on line 85 and the
`calculateTotalTranslate3d` import can go too, keeping just the `cssText`
restore. The spec's "counts as docked when the saved transform nets out to the
origin" case would then only check this dead field, so it can go as well, along
with the `returnPosition` assertion in the test above it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]