Skip to content

Issue with shape resizing and fit_text #514

@PyTomE

Description

@PyTomE

First of all: thanks for this great package!

I try to create a slide for a report with - for instance - three shapes.

  • a text box (1/4 of the slide from top)
  • a table (1/2 of the slide just below the text)
  • another text box (1/4 of the slide below the table)

While playing around with auto_size and digging in all the comments and issues already raised, I realized a probably tiny enhancement that could help a lot:
When you run fit_text() the size of the text will be reduced if necessary. Fine.
Now, dependent on the number of words and paragraphs this will be different for the first and the last text box. Thus you end up with two different text sizes. And - of course - one for the table or any other content.

Now, what about this:
When you run fit_text(), the size-property should be set instead being None.
This way one could check both text boxes and reset the size to - for instance - smallest value from both shapes for both shapes.
Clear?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions