Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bug when padding date field

I have found a bug when using PowerApps with a custom SharePoint form where the padding of a date field is not showing.

I'm using the padding to sit the text in the middle of the field because date fields don't have a vertical align.

The padding shows when using the PowerApps Studio


but when I publish the text is sitting back down the bottom.


What would be the likely reason for this?



Community Support
Community Support

Re: Bug when padding date field

Hi @Anonymous ,

Could you please share a bit more about your issue?

Do you mean that there is something issue with the padding property within the DatePicker control in your custom form?

Further, could you please share more details about the Padding properties (Padding Top, Padding Bottom, Padding Left and Padding Right) of the DatePicker control in your app?

I have made a test on my side, and don't have the issue that you mentioned. Please check if the Padding Top property and Padding Bottom property of the DatePicker control is set to same value.

Please take a try to set the the Padding Top property and Padding Bottom property of the DatePicker control to 0.


In addition, please consider take a try to turn off/disable the "Improved app rendering (final validation)" option within Advanced settings of App seetings of your app, re-publish your app, check if the issue is soloved.


If the issue still exists, please consider take a try to remove the custom form from your SP list, then re-add a new one for it, check if the issue still exists. Also please take a try to run your custom form within other different browsers, then check if the issue still exists.


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advocate II
Advocate II

Re: Bug when padding date field

I have the exact same problem. Changing top padding to 0 does not work. Is there any update on this?

Frequent Visitor

Re: Bug when padding date field

I have uncovered this issue too. It's very wierd and I think it should be considered as a bug.


Setting paddingTop to 0 and paddingBottom to 0 helped me but first I naturally set my paddingTop and paddingBottom to 5 and it behaved like this (in published app only, in preview during edit mode it was showing correctly): 




Looks like in published app it is multiplying paddingTop by 2 maybe? If this is correct behaviour then I don't understand why it shows in published app one way and in preview during editing in another way.



Helpful resources


New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,520)