Friday, June 11, 2010

Re: 1 layout - 3 browsers - 3 results?

Hi Alejandro,

I think you are replying to a post that I cancelled. I did so, because
I managed to reproduce this behavior with a minimalistic piece of code
so that it was clear that it must be a general issue. I found that
here must be a problem in the GWT version that is not fixed yet:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4532

But let me come back to your code for centering the chess board: The
main prerequisite is that you set (and therefore know) the pixel size
of the inner box to 400,400.

However, doing the same with a form was not possible for me since I am
building on top of your code template. The reason is that I don't know
the size of my form. I put all the widgets together in a panel (I
tried every type) and add this panel to my DockLayoutPanel. Then it's
immediately stretched, so that I cannot retrieve its "natural" size.
But exactly this size is needed to do the centering as you did in your
code.

How would you do this? Can you help me again?

Thank you
Magnus

On Jun 11, 6:54 pm, "Alejandro D. Garin" <aga...@gmail.com> wrote:
> Hi,
>
> I added the menu items you mention and it is working, tested in IE8.
>
> On Fri, Jun 11, 2010 at 1:42 AM, Magnus <alpineblas...@googlemail.com>wrote:
>
> > Hi,
>
> > there is a strange problem with the menubar in your example using IE8
> > (not with FF).
>
> > When it opens a popup menu, the whole page disappears and only the
> > popup menu is visible.
>
> > The popup menu is added to the menubar as follows:
>
> > MenuBar m= new MenuBar (true);
> > m.addItem ("Login", (Command)null);
> > m.addItem ("Logout",(Command)null);
> > m.addItem ("Register",(Command)null);
> > m.addItem ("Profile",(Command)null);
> > menu.addItem ("Account",m);
>
> > What's that again?
>
> > Magnus
>
> > On 10 Jun., 13:08, Magnus <alpineblas...@googlemail.com> wrote:
> > > Hi Alejandro,
>
> > > thank you very much!!!
> > > This solution seems to be perfect for me!
>
> > > I played around a little bit. I Changed the base class for the
> > > ChessTable to DockLayoutPanel, to add some annotations to the chess
> > > board. This worked, too!
>
> > > Then I inserted a grid into the center section of ChessTable. It's
> > > clear that this was not centered.
> > > May I use the same mechanism to center this grid within the
> > > ChessTable?
>
> > > I understand the mechanism as follows:
>
> > > - create a new class, which implements RequiresResize
> > > - write a onResize method which centers this object within the parent
>
> > > Well, it works great on FF and IE. Good job!
>
> > > Thanks again!
> > > Magnus
>
> > > On 9 Jun., 20:31, "Alejandro D. Garin" <aga...@gmail.com> wrote:
>
> > > > Just from the webappcreator. Nothing special.
>
> > > > On Jun 9, 2010 3:28 PM, "Magnus" <alpineblas...@googlemail.com> wrote:
>
> > > > Hi Alejandro,
>
> > > > this looks very good and I am still analyzing the java code. I will
> > > > give you a more detailed feedback later...
>
> > > > The java code looks clean, but the html file is pumped up with of
> > > > JavaScript.
> > > > Does this code belong to the solution or is it just generated from
> > > > other sources?
>
> > > > Magnus
>
> > > > On Jun 9, 7:35 pm, "Alejandro D. Garin" <aga...@gmail.com> wrote:
>
> > > > > Hi,
>
> > > > > The code below is part of the task, but it center the main chess
> > table in
> > > > > the dock center panel....
>
> > > >http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.javahttp://ww.
> > ..
>
> > > > > On Wed, Jun 9, 2010 at 12:50 PM, Magnus <
> > alpineblas...@googlemail.com
> > > > >wrote:
>
> > > > > > Hi,
>
> > > > > > everything you said is correct.
>
> > > > > > Magnus
>
> > > > > > On Jun 9, 5:09 pm, "Alejandro D. ...
> > > > > > <google-web-toolkit%2Bunsubscribe@googlegroups.com<google-web-toolkit%252Bunsubscribe@googlegroups.com>
> > <google-web-toolkit%252Bunsubscribe@googlegroups.com<google-web-toolkit%25252Bunsubscribe@googlegroups.com>
>
> > > > <google-web-toolkit%252Bunsubscribe@googlegroups.com<google-web-toolkit%25252Bunsubscribe@googlegroups.com>
> > <google-web-toolkit%25252Bunsubscribe@googlegroups.com<google-web-toolkit%2525252Bunsubscribe@googlegroups.com>
>
> > > > > > > > .
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/goog...
>
> > --
> > 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate