Monday, September 23, 2013

getting access to min-width of an element


I am trying to get access to the min-width style property on some widget to be able to properly implement a layout.

When I use:
widget.getElement().getStyle().getProperty("minWidth") I always get "" as a result.

The min-width style is set like this:
.myclass {
  min-width: 200px;

<div class='myclass'>...</div>

I noticed that when I define the min-width as a style attribute then it works.
<div style='min-width:200px;'>...</div>

What I really need is a way to know what the computed value should be... and this should work on IE8+ and other browsers as well.

Anybody has a solution for this ?


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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment