> We shouldn't get hung up on the fact that LengthAttributeParser is misnamed > (ScalarAttributeParser?). Negative support sounds like the right thing to > do. Element parsers that are concerned about negative values could do their > own check for that, although it could be tricky to do correctly. > > Did you just volunteer?
Yes, this looks as easy change. See http://gwt-code-reviews.appspot.com/1094801/show > > On Tue, Nov 9, 2010 at 7:41 AM, Konstantin.Scheglov < > > > > > > > > konstantin.scheg...@gmail.com> wrote: > > One of the users of GWT Designer found that code like this causes > > rendering failure. > > > <g:layer left="-34px" width="109px" top="70px" height="20px"> > > <g:CheckBox text="New CheckBox"/> > > </g:layer> > > > As you can see, "left" attribute contains negative value. > > In Java version such value is not problem for "left", "right", "top" > > and "bottom". > > > As I can see, problem is in LengthAttributeParser which does not > > recognize negative values. > > I'm not sure what to do - we could add "minus" support, but is this > > correct ideologically? Negative _length_ is not valid, but negative > > _position_ is fine. > > > -- > >http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors