Hi Andreas,
the most ugly thing concerns the chess board, which I set up with
SimplePanels based on your idea:
There are gaps between the columns.
Look at this:
http://yfrog.com/0nappdp
I find that most web apps still work good with old browsers, and I am
not sure if my app should look better w
Hey Magnus,
to be honest I was very glad to read this post:
http://googleenterprise.blogspot.com/2010/01/modern-browsers-for-modern-applications.html
Besides, what exactly is looking ugly?
Me personally, I would not spend much time in fixing it for IE6 if it
can not be fixed by slightly adjusti
Hi Andreas,
may I come back to your code? I have build my chess game on your idea
using SimplePanels for the cells. It always worked great, but today I
found that it looks ugly under IE6. What would you do in this case? Is
IE6 so old that you can ignore it?
Thanks
Magnus
On Jun 28, 12:24 pm, and
I gave it a last try: I bundled the code that creates the panels into
a single method, so that I can easily switch between the panel and no-
panel version. This should make sure that there are no other things in
the code that may cause the verttical space.
In the no-panel version I explicitly set
I think the difference was that you never set the size of the Image
instances.
You know the resolution of the images you use as background. Try
calling setPixelSize(...) on each Image instance with the image
resolution values. This way you can make sure the Image has the
correct size, thus the sup
BTW: I must set the grids pixel size, because it will be of height 0.
The parent is a DockLayoutPanel...
But it's ok, since I know the correct size...
Magnus
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send ema
Hi,
your code works fine! Thanks!
But: Why? What's the qualitative difference?
BTW: Do you know a quick method to draw a line between the inner and
outer cells?
I wonder if I should keep on trying with my version or if your method
using SimplePanel is more stable in either case? What about havi
Yes I see.
Maybe the image file dimensions and the dimensions of the Image
instances are "conflicting".
When I get it right the dimensions of the Image instances are never
set. Instead they are resized based on the dimension of the Grid
itself. Now if the Image instances display an image with dif
Hello,
I made another screenshot with red borders around the images:
http://yfrog.com/cachessboardj
As you can see there is vedrtical space below each image.
I just found out that this is not the case in IE.
Thanks
Magnus
On 28 Jun., 11:51, andreas wrote:
> Where exactly are the vertical spac
Here's code I'd use to create a simplistic chess board:
// the chess board with no spaces
Grid cb = new Grid(10, 10);
cb.setCellPadding(0);
cb.setCellSpacing(0);
cb.setBorderWidth(0);
// assembles the board by inserting colored panels
for (int i = 1; i < 9; i++) {
// panels of the top row
Where exactly are the vertical spaces? From what I see, there are no
spaces between the cells of the top and bottom row and the spaces
between the cells in the left and right column are of the same color
as the image background, so I assume there are actually also no
spaces, correct me on this one?
Here is the screenshot:
http://yfrog.com/j7chessboardj
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
Hi,
I made a screenshot of the table:
I drew a cross on the transparent images for debugging. As you can
see, there is always a vertical space between the images.
I post my current code below.
Thanks for help
Magnus
---
private void init ()
{
normalize (grd);
setPixelSize (bs+55,bs+55
Hi,
I also set the border width to 0:
grd.setBorderWidth(0);
Thanks
Magnus
On 28 Jun., 09:53, andreas wrote:
> Try setting the border width on the Grid instance to 0:
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...)
>
> - Andreas
>
> On 28 Jun., 09:43, Magnus wrot
Try setting the border width on the Grid instance to 0:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/HTMLTable.html#setBorderWidth(int)
- Andreas
On 28 Jun., 09:43, Magnus wrote:
> Hi Andreas,
>
> thank you!
>
> I found out something:
>
> I thought I co
Hi Andreas,
thank you!
I found out something:
I thought I could get a solution by inserting images of the correct
pixel size into each cell.
So I created transparent images with the exact pixel sizes:
50x50 for the inner cells, 50x10 for the horizontal borders, 10x50 vor
the vertical borders.
Hey,
maybe this can help you:
http://groups.google.com/group/google-web-toolkit/msg/f59a0c87d0cf300e
On 27 Jun., 07:23, Magnus wrote:
> Hi,
>
> I need a Grid with the following simple requirements:
>
> - 10 * 10 cells
>
> - inner 8*8 cells (form a chess board):
> rows 1-8; cols 1-8: pixel siz
Hi,
I need a Grid with the following simple requirements:
- 10 * 10 cells
- inner 8*8 cells (form a chess board):
rows 1-8; cols 1-8: pixel size 50 * 50
- outer cells (form the annotations, e. g. "A", "1"):
rows 0 and 9: pixel height: 10
cols 0 and 9pixel width: 10
The total pixel size o
18 matches
Mail list logo