Hi,

what are you going to tell me or us?

Stefan Bachert
http://gwtworld.de

On 2 Mai, 18:08, Gal Dolber <gal.dol...@gmail.com> wrote:
> package com.google.gwt.user.client.ui;
>
> import com.google.gwt.user.client.ui.DockLayoutPanel.Direction;
> import com.google.gwt.user.client.ui.DockLayoutPanel.LayoutData;
>
> /**
>  * Dock layout util.
>  */
> public final class DockLayoutUtil {
>
>     /**
>      * Set layout.
>      * @param widget Widget
>      * @param size Size
>      */
>     public static void setWidgetLayoutData(Widget widget, int size) {
>         setWidgetLayoutData(widget, null, size);
>     }
>
>     /**
>      * Set layout.
>      * @param widget Widget
>      * @param direction Direction
>      * @param size Size
>      */
>     public static void setWidgetLayoutData(Widget widget, Direction
> direction, int size) {
>         LayoutData data = (LayoutData) widget.getLayoutData();
>         data.size = size;
>         if (direction != null) {
>             data.direction = direction;
>         }
>     }
>
>     private DockLayoutUtil() {
>     }
>
> }
>
> 2010/5/2 Stefan Bachert <stefanbach...@yahoo.de>
>
> > Hi,
>
> > 100% is evil.
>
> > regardless on the rest of your topic.
> > Setting width or height to 100% works sometimes with your browser,
> > but 100% of what? 100% of the size of the This-widget, or of its
> > parent?
>
> > When using 100% as a value it is very likely to fail on some browser
> > (mostly IE 8)
>
> > Stefan Bachert
> >http://gwtworld.de
>
> > On 30 Apr., 03:28, kirtcathey <kirtcat...@gmail.com> wrote:
> > > Any resolution on this one... I have a text editor in the North panel
> > > and another text editor in the Center panel of a SplitLayoutPanel. All
> > > set to 100% and everything displays fine, but text editors only resize
> > > horizontally, not vertically.
>
> > > On Apr 8, 11:15 pm, dueckes <duec...@gmail.com> wrote:
>
> > > > Hi all,
>
> > > > I have a DockLayoutPanel with two children, one occupying the West
> > > > Direction and the other Center.
>
> > > > When a user clicks a button my intention is toresizethe child in the
> > > > West direction and have that stretch or shrink the size of the child
> > > > at the Center direction accordingly.
>
> > > > Playing with the API I have been able to achieve two things:
> > > > 1)Resizethe _entire_ DockLayoutPanel via a callback passed to the
> > > > animate method.  I don't seem to be able to manipulate child
> > > > dimensions here.
> > > > 2) Using a similar approach,resizethe child in the West Direction
> > > > _without_ effecting the dimensions of the child at the Center
> > > > Direction - i.e. the DockLayoutPanel containers for the children are
> > > > uneffected.
>
> > > > I have considered subclassing DockLayoutPanel and exposing a method to
> > > > manipulate child widget LayoutData directly - but this approach
> > > > doesn't play well with UiBinder.
>
> > > > Can anyone recommend any way of achieving this?  Note I'm also
> > > > experiencing a similar problem withSplitLayoutPanel.
>
> > > > Regards,
>
> > > > Matthew
>
> > > --
> > > 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-toolkit@googlegroups.com
> > .
> > > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 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<google-web-toolkit%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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.

Reply via email to