Tuesday, July 7, 2015

Re: Unwanted DataGrid cell padding / indentation

I got this project at work a month ago, after a coworker left. I haven't seen anywhere in the code something that add this padding (I've been looking a looong time)...
But you're right, it must be somewhere in this project because if I start from a new empty project there is no unwanted padding.

Le lundi 6 juillet 2015 15:47:42 UTC+2, Raymond Hawkins a écrit :
That was my thinking as well.

On Monday, July 6, 2015 at 9:39:06 AM UTC-4, Jens wrote:

That padding is on the td element itself though. Not the div inside of it. Or maybe that varies based on the browser?

GWT's DataGrid.gss file only sets padding on the td element (dataGridHeader, dataGridFooter and dataGridCell). The padding on the div inside that td.dataGridCell element is defined somewhere else in the app. Maybe somewhere in the app there is a css rule like td > div { padding: .. } or similar that causes the additional padding. Or the Cell itself renders it with that padding.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment