3.2.0

Remove padding when using Text Wrap

Hi there,

How do you remove padding from the header cell when using the following text wrap code?:

grid.getHeaderTemplate().setClass("text", "wrap");

I have an image in one header cell and text in other header cells. The left padding indents my images. Is there a way to remove that left padding?

Any help would be greatly appreciated.
August 14,
The padding is applied to the inner box of the header template -

.aw-grid-header .aw-item-box {
    padding-left: 0px;
}
Alex (ActiveWidgets)
August 17,
Thank you for the response, Alex.

The code works in IE, but not in Firefox. There is still that left padding. The workaround for me was to set the header cell background with the same image using the following code:

grid.getHeaderTemplate(1, 0).getContent("box").setStyle("background-image", "url(images/hours.gif)");

Do you recommend another way?

Thank you for your help!
August 21,

This topic is archived.

See also:


Back to support forum