internal void AddDisplayStyleAttribute (HtmlTextWriter writer)
{
if (!ControlStyleCreated)
return;
if (!ControlStyle.BorderWidth.IsEmpty ||
(ControlStyle.BorderStyle != BorderStyle.None && ControlStyle.BorderStyle != BorderStyle.NotSet) ||
!ControlStyle.Height.IsEmpty ||
!ControlStyle.Width.IsEmpty)
writer.AddStyleAttribute (HtmlTextWriterStyle.Display, "inline-block");
}
#endif