Hi Chris,

I have found it!!! I now know what is happening, but I have not actual
a solution. But I also think this should be interesting for you GWT
developers!

First of all, I found that the computer that compiled the "bad"
version (with the bad layout), had GWT version 2.0.4, while the
computer with the "good" version had GWT version 2.0.3. I did not
realize this, because both eclipse installations had the "newest" GWT
plugin. But the eclipse instances themselves were different (3.5 and
3.6).

However, I upgraded the "good" computer to the newest versions of
eclipse and GWT (2.0.4), and the result is that it's now a "bad" one
too.

This means:
There is a layout problem, which was not present in GWT 2.0.3, but is
present in GWT 2.0.4!

Well, I also found out the reason for the problem:

In short:
IE7 processes "padding-left" and "padding-right" like "margin.-left"
and "margin-right".

In detail:
I use a HorizointalPanel as a TitleBar (or StatusBar) and I want to
place some text at the left end and at the right end of the bar. There
should be some space between the text and the left/right end of the
panel, so I used "padding-left:15px" or "padding-right: 15px" in the
CSS for the bar. This works correctly in all browsers, but in IE7 it
works like "margin-right", i. e. the whole TitleBar/StatusBar does not
cover the whole width, as shown in the screenshot I provided.

So, I know what is happening there, but I have no solution. Setting
the padding to 0px makes the bars ok, but the text is not placed fine.

I hope, this information is useful for you GWT developers and that
someone finds out, why this came with GWT 2.0.4.
And I also hope that you could point me to a solution for my
problem...

Thank you
Magnus









On 25 Aug., 15:16, Magnus <alpineblas...@googlemail.com> wrote:
> Hi Chris,
>
> could the different hash codes really lead to wrong display of
> HorizontalPanels?
>
> If I analyze the DOM with FireBug, I see no differences.
>
> I also cleared my browser cache, but the wrong panels still reappear.
>
> What can I do next?
>
> Please note that this discourages me from continuing with my first GWT
> App! At the moment I am not able to deploy it from my linux box so
> that it looks right on IE, but it does look right if I deploy the same
> from a windows box. I cannot continue until this works...
>
> Magnus
>
> On 23 Aug., 17:40, Chris Conroy <con...@google.com> wrote:
>
> > Well, untilhttp://code.google.com/p/google-web-toolkit/source/detail?r=8605
> > the
> > compiler could use different line endings which would result in a different
> > hash for your .cache.html files.
>
> > Though, this would not change the appearance of your code. Most likely, you
> > have your caching mis-configured and in one browser you are seeing a stale
> > version.
>
> > On Mon, Aug 23, 2010 at 9:40 AM, Magnus <alpineblas...@googlemail.com>wrote:
>
> > > Hello,
>
> > > could someone please ponit me into the right direction?
>
> > > What can I do that my code leads to the same results on different
> > > compilation platforms?
>
> > > Thank you
> > > Magnus
>
> > > --
> > > 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.
>
> > --
> > Chris Conroy
> > Software Engineer
> > Google, Atlanta

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