Forum Discussion
How do I define these padding values in a theme: General - Properties - Padding?
Hi, a new(?) section for "Padding" has appeared in General - Properties - Padding for all visual types:
I found this Padding section as I discovered that all my visuals have changed appearence recently without me doing any changes, the title and content have moved leftwards against the left border:
Only when I change one of the 4 padding settings on a visual manually, the visual seems to pick up the default settings.
- Do I have to manually change these padding settings for all my visuals to make them use the default?
- Or can I put the padding settings in a theme, hopefully in one location in the theme for all visuals?
- What is the name of the theme entry for these padding settinings
4 Replies
- josecherianRegular Visitor
Padding to all visuals can be added like below. Please refer to my blog post for detailed instructions.
"visualStyles": { "*": { "*": { "padding":[{ "top":20, "bottom":20, "left": 20, "right":20 }] } } } - IdrissshatilaSuper User
Hello Anonymous ,
Unfortunatly, there is no option in themes that would let us add padding values to it so we could apply it to all the reports.so probably you should do it manually.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
- AnonymousNot applicable
I have hundreds of visuals around....
Why do the visuals NOT use the default padding values 0px/5px/5px/5px automatically, without me having to modify one of the padding settings on every visual manually? Seems like a bug or a limitation that should be fixed?
This is how it looks when I click "Reset to default" in the Padding section:
This is how it looks when I adjust TOP padding to 1, and then back to 0:
You see that now all 4 padding settings have been set to the ones showing in the Padding section.
- MyriamWFrequent Visitor
I just submitted a new idea regarding this topic: Microsoft Idea (powerbi.com)