Re: 2 Questions: getOffsetHeight ignores margin C ssResource doesn´t include css property

2010-10-06 Thread Thomas Broyer


On Oct 6, 6:17 am, Sandler smike...@gmail.com wrote:
 Hi guys, i´ve got 2 questions.
 I´m using getOffsetHeight to get the height of an Widget. This works
 fine, but when i adding a css margin to the widget, the css-property
 seems to be ignored. The doc says: This is the total width of the
 object, including decorations such as border, margin, and padding. Is
 this an bug?

The doc is wrong, margin isn't included: 
https://developer.mozilla.org/en/DOM/element.offsetHeight

 The next thing i would like to know is, if its possible to use none
 WC3 valid css-properties like: background: -moz-linear-gradient(top,
 white 0%, skyblue  75%); inside a ClientBundle, CssResource CssFile.
 Is there an config property to allow such css? Im using this for an
 private Project and it would be annoying if this was not possible.

It should work. If it doesn't, then wrap the value in a literal():
background: literal(-moz-linear-gradient(top, white 0%, skyblue
75%));

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: 2 Questions: getOffsetHeight ignores margin C ssResource doesn´t include css property

2010-10-06 Thread bconoly
I thought that getClientHeight took margin, padding and border into
account while offset didn't.  You may want to try that.  I'm
unfortunately not sure of the second question.

On Oct 6, 12:17 am, Sandler smike...@gmail.com wrote:
 Hi guys, i´ve got 2 questions.
 I´m using getOffsetHeight to get the height of an Widget. This works
 fine, but when i adding a css margin to the widget, the css-property
 seems to be ignored. The doc says: This is the total width of the
 object, including decorations such as border, margin, and padding. Is
 this an bug?

 The next thing i would like to know is, if its possible to use none
 WC3 valid css-properties like: background: -moz-linear-gradient(top,
 white 0%, skyblue  75%); inside a ClientBundle, CssResource CssFile.
 Is there an config property to allow such css? Im using this for an
 private Project and it would be annoying if this was not possible.

 Greets from Austria,
 Six Michael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.