The standard Label and Panel controls will honor its Padding property and shift its contents (the label text, or the panel controls) respecting the amount of padding added.
When I first started using HtmlLabel and HtmlPanel I was struggling because the Control.Padding property is not honored. In fact it is completely ignored, and the HTML content will use the control's entire client area. I think that, mostly for consistency, it should honor this property.
The padding property is a LOT useful to create Visual Inheritance of forms because there are many issues with visual inheritance and Anchors + changes in inherited forms which are solved by the clever use of Dock and Padding...
It is NOT that much of a big deal because the workaround is simple: Add the HtmlPanel/Label inside a standard Panel and set the parent's Padding property instead. But this adds unneeded complexity to the layout and may cause trouble to inexperienced developers.
And I also believe it should be very, very easy to implement (I didn't take a look at the source code, but given the quality of the HtmlRenderer controls I believe they are all very well coded, so this shouldn't be a big deal!)
When I first started using HtmlLabel and HtmlPanel I was struggling because the Control.Padding property is not honored. In fact it is completely ignored, and the HTML content will use the control's entire client area. I think that, mostly for consistency, it should honor this property.
The padding property is a LOT useful to create Visual Inheritance of forms because there are many issues with visual inheritance and Anchors + changes in inherited forms which are solved by the clever use of Dock and Padding...
It is NOT that much of a big deal because the workaround is simple: Add the HtmlPanel/Label inside a standard Panel and set the parent's Padding property instead. But this adds unneeded complexity to the layout and may cause trouble to inexperienced developers.
And I also believe it should be very, very easy to implement (I didn't take a look at the source code, but given the quality of the HtmlRenderer controls I believe they are all very well coded, so this shouldn't be a big deal!)