iappyx / Instrumenta

Free and open source consulting-style Powerpoint toolbar
MIT License
272 stars 20 forks source link

Decrease Line Spacing with Autofit #47

Open YazanWael opened 3 months ago

YazanWael commented 3 months ago

Describe the bug "Decrease Line Spacing" actually increases the line spacing with content placeholders

To Reproduce Steps to reproduce the behavior:

  1. Select a placeholder that contains multiple lines of text and has Autofit tuned on (Shrink text on overflow)
  2. From Instrumenta toolbar, go to "text" section and click on "Decrease Line Spacing" button
  3. The line spacing should ideally decrease, but actually, it increases
  4. You can validate this by going to "Home" tab and click on "Paragraph" to check the before & after values of line spacing

Expected behavior It's expected to decrease the line spacing

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context I tried the same on normal shapes with Autofit on, but it worked as expected. The only bug found was on content placeholders. You can use the default PowerPoint Blank Template which contains a content placeholder for the body.

iappyx commented 3 months ago

Thanks for reporting! Will check it.