Open GoogleCodeExporter opened 9 years ago
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
Hi,
(Sorry for the last comments, I have deleted them. Do not take them in account.
I posted before having a good enough overview of the rendering process of
XHTMLPanel).
To fix for the LAF problem (I think it is OK, but as I said I just begin with
Flyingsaucer), change the code of the method RootPanel.getScreenExtents() with
the following:
public Rectangle getScreenExtents() {
Rectangle extents;
if (enclosingScrollPane != null) {
Rectangle bnds = new Rectangle(enclosingScrollPane.getViewport().getSize());
extents = new Rectangle(0, 0, bnds.width, bnds.height);
//Uu.p("bnds = " + bnds);
} else {
extents = new Rectangle(getWidth(), getHeight());//200, 200 ) );
}
return extents;
}
The source of the problem is that for the GTK LAF:
enclosingScrollPane.getViewport().getSize()
and
enclosingScrollPane.getViewportBorderBounds()
do not give the same dimension.
Original comment by nicolas.james@gmail.com
on 8 May 2011 at 8:50
Original issue reported on code.google.com by
nicolas.james@gmail.com
on 6 May 2011 at 3:00Attachments: