Re: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-25 Thread Magnus
Dear Philippe,

yeah this was the reason and the workaround works as hell! Many
thanks! This saved my fascination for building GWT apps! :-)

But some questions remain:

Why does this only affect IE7? I first thought that it was a bug
originated in the browser specific generated code. But I could
reproduce it in hosted and web mode, but only in IE7, not in FF. So,
where exactly is the bug?

It seems that it only affects DockLayoutPanel inside a
StackLayoutPanel. I remember that the bug was not present when I had
other Panels inside my StackLayoutPanel.

For now, I just implemented a forceLayout method in MyStackLayoutPanel
as follows:
-
public class MyStackLayoutPanel extends StackLayoutPanel
{
...
 public void forceLayout ()
 {
IteratorWidget itr = iterator ();

  while (itr.hasNext ())
  {
   Widget w = itr.next ();

   if (w instanceof DockLayoutPanel)
   {
((DockLayoutPanel) w).forceLayout();
   }
  }
 }
-

As you can see, I only handle children that are DockLayoutPanels,
because I know that my problems are solved with it. However, how would
a more generic workaround look like?

And last but not least: Will this be fixed in future GWT versions?
(This is not the first IE7-specific piece of code in my project...)

Again, a thousand thanks!

Magnus

/* Chess players, who want to join a small but growing community,
please e-mail me! */

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-24 Thread Magnus
Hi,

sorry for the delay, but I cannot check it out until tomorrow.

It sounds very interesting and I am total curious!

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-toolkit@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: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-22 Thread Magnus
Hi,

I could not find anything about IE DOM explorer. I see the problems
with IE7, and there is no such plugin.

However, the bad layout does not appear on initial loading, it appears
after switching the stack. It's weird, but I can reproduce it.

I don't see any part of this animation mechanism in the hands of the
programmer, because it's all encapsulated within the GWT library. So I
cannot imagine, what I can do or change?

In general, I am so happy with GWT, but such problems prevent me from
building fine apps! :-)

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-toolkit@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: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-22 Thread Philippe Beaudoin
The best way to explore the DOM with IE7 is to open the app with IE8, press 
F12, click on Browser Mode and select IE7. Then you can use this Developer 
Tool panel to explore the DOM.

I was able to recreate the problem in IE7 and I notice that 2 nested divs 
have a height of 21px. Setting their height manually to 100% solves the 
problem, but I don't know why their height is 21px to begin with.

My guess is that you are hitting this bug. There is a relatively easy 
workaround that I have verified to work in my applications, you might want 
to give it a shot:
  http://code.google.com/p/google-web-toolkit/issues/detail?id=5245

(Very nice chess app by the way!)

Cheers,

   Philippe

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-22 Thread Thomas Broyer


On Tuesday, February 22, 2011 6:58:58 PM UTC+1, Magnus wrote:

 Hi, 

 I could not find anything about IE DOM explorer. I see the problems 
 with IE7, and there is no such plugin.


If you cannot or do not want to install IE8 (whose IE7 mode is might be 
slightly different from a true IE7), see 
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=95e06cbe-4940-4218-b75d-b8856fced535
It's far from any other browser developer tools, but better than nothing.

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-22 Thread Philippe Beaudoin
*shivers* :)

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-20 Thread Magnus
Hi Philippe,

go to www.bavaria64.de/bcs and login as Beaudoin, with the same
password. Open a chess game (I have created one for you) and select
Chat on the right.

Thank you for helping!

Magnus

On Feb 19, 6:30 pm, Philippe Beaudoin philippe.beaud...@gmail.com
wrote:
 Using IE's DOM explorer might help you see what's wrong there... If you have
 the app deployed somewhere I could take a quick look.

 Philippe

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-19 Thread Philippe Beaudoin
Using IE's DOM explorer might help you see what's wrong there... If you have 
the app deployed somewhere I could take a quick look.

Philippe

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Stack Layout Panel - strange layout problem after switching tabs!

2011-02-18 Thread Magnus
Hello,

I have a StackLayoutPanel, where the content panels are
DockLayoutPanels.

One of these panels contains a ScrollPanel, which contains a
FlexTable. So the hierarchy is as follows:

StackLayoutPanel - DockLayoutPanel - ScrollPanel - FlexTable (in
center)

However, sometimes the FlexTable is misplaced, right after selecting
the tab:
https://picasaweb.google.com/104334857964624808900/GWT#5575015619744351906

This happens only when there is another tab selected first and one
switches to this one.
(and only in IE, not in FF)

I already found that it's the ScrollPanel that is not laid out
correctly, but I don't know why. I always thought that the center
widgets of a DockLayoutPanel are always stretched...

I do not expect a final solution, but I would be glad if I knew where
to begin?

Could someone point me into a good direction?

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-toolkit@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: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-18 Thread Philippe Beaudoin
Did you try explicitely setting the CSS height of your ScrollPanel to 100%?

-- 
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-18 Thread Magnus
On Feb 18, 7:50 pm, Philippe Beaudoin philippe.beaud...@gmail.com
wrote:
 Did you try explicitely setting the CSS height of your ScrollPanel to 100%?

I set the height as folows:

scp.setHeight(100%);

I believe that this results in the appropriate CSS style...

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