Re: how to control the pixel sizes of a Grid?

2010-07-21 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-07-21 Thread andreas
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

Re: how to control the pixel sizes of a Grid?

2010-07-21 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread andreas
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread andreas
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread andreas
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread andreas
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?

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread andreas
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

Re: how to control the pixel sizes of a Grid?

2010-06-28 Thread Magnus
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.

Re: how to control the pixel sizes of a Grid?

2010-06-27 Thread andreas
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

how to control the pixel sizes of a Grid?

2010-06-26 Thread Magnus
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