Skip to content

PowerPoint Shapes API preview bug when working with multiple shapes #618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davidchesnut opened this issue Apr 4, 2022 · 1 comment · Fixed by #619
Closed

PowerPoint Shapes API preview bug when working with multiple shapes #618

davidchesnut opened this issue Apr 4, 2022 · 1 comment · Fixed by #619
Assignees
Labels
Area: PowerPoint Needs: attention 👋 Waiting on Microsoft to provide feedback Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Type: snippet bug Problem with a snippet

Comments

@davidchesnut
Copy link
Member

This issue occurs in PowerPoint when running the "Insert shape, line, and text box" sample in Script lab. Sample code is here: https://github.com/OfficeDev/office-js-snippets/blob/main/samples/powerpoint/preview-apis/shapes.yaml

If you are on a slide with multiple shapes the code can get confused when shrinking or moving the hexagon. It can end up grabbing a different element and applying incorrect settings. Need to ensure it can correctly identity and use the hexagon.

Repo steps:

  1. Open PowerPoint on desktop and a new presentation. You will get a blank slide with title and subtitle.
  2. Open Script lab and run the sample.
  3. Choose "Create hexagon".
  4. Choose "Shrink hexagon". At this point the title will get shrunk, not the hexagon.
  5. Choose "Move hexagon". Again the title is moved, but not the hexagon.
@ghost ghost added the Needs: triage 🔍 New issue, needs triage ASAP label Apr 4, 2022
@Rick-Kirkham Rick-Kirkham self-assigned this Apr 4, 2022
@Rick-Kirkham Rick-Kirkham added Type: snippet bug Problem with a snippet Area: PowerPoint Needs: attention 👋 Waiting on Microsoft to provide feedback Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown and removed Needs: triage 🔍 New issue, needs triage ASAP labels Apr 4, 2022
@Rick-Kirkham
Copy link
Contributor

A step was left out of the instructions. (Users should delete all existing shapes before pressing any of the other buttons.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: PowerPoint Needs: attention 👋 Waiting on Microsoft to provide feedback Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Type: snippet bug Problem with a snippet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants