On Wednesday, May 30, 2012 11:09:39 AM UTC+2, tong123123 wrote:
>
> as show in the image, beforesearch, there is no scrollbar in the right 
> hand side, and then press search, in the searching.png, it show a warning 
> message, and after press ok, the result is shown (result.png), but one 
> point very strange, in the result.png, there is a scrollbar in the 
> background right hand side, and I check with F12 in IE, the reason is the 
> gwt-PopupPanelGlass height expanded, why will this occur?
>
> if I search less record, let's said the result only has 3 records, the 
> background right hand side scrollbar will not be shown, and the 
> gwt-PopupPanelGlass will not be expanded when check by F12 in IE.
>

The glass panel is sized to the widest/highest of the viewport (window) or 
the document (when it's wider/higher than the viewport; i.e. there are 
scrollbars), and is then resized if the window is resized (but not if the 
document content changes, because it's nearly impossible to detect).

So, the behavior you're seeing is probably due to the document having those 
scrollbars at the time the glass panel's size is computed.

If you really want to debug this, I'd recommend compiling in "-style 
PRETTY" and then debugging the JS in IE, setting a breakpoint in 
PopupPanel#maybeShowGlass. Particularly, check 
document.documentElement.scrollHeight on each step to try to understand 
when and why it grows that way.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/4D_vlo-A96YJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to