Re: 1 layout - 3 browsers - 3 results?

2010-06-15 Thread Magnus
Hi! I guess the point is that you used a FlowPanel which does not stretch its children. I found out that this is also true for AbsolutePanel. Thanks! BTW: I wonder why you use this construct: int parentH = dock.getWidgetContainerElement(this).getOffsetHeight(); Why not simply call:

Re: 1 layout - 3 browsers - 3 results?

2010-06-15 Thread Alejandro D. Garin
On Tue, Jun 15, 2010 at 10:49 AM, Magnus alpineblas...@googlemail.comwrote: BTW: I wonder why you use this construct: int parentH = dock.getWidgetContainerElement(this).getOffsetHeight(); Why not simply call: doc.getParent ().gettOffsetHeight(); ? The latter code would also be usable

Re: 1 layout - 3 browsers - 3 results?

2010-06-12 Thread Alejandro D. Garin
Hi Try this: (only tested on mac FF and Safari) http://www.puntosoft.com.ar/gwt/layoutChess/FormTable.java On Sat, Jun 12, 2010 at 12:23 AM, Magnus alpineblas...@googlemail.comwrote: Hi Alejandro, I think you are replying to a post that I cancelled. I did so, because I managed to reproduce

Re: 1 layout - 3 browsers - 3 results?

2010-06-11 Thread Alejandro D. Garin
Hi, I added the menu items you mention and it is working, tested in IE8. On Fri, Jun 11, 2010 at 1:42 AM, Magnus alpineblas...@googlemail.comwrote: Hi, there is a strange problem with the menubar in your example using IE8 (not with FF). When it opens a popup menu, the whole page

Re: 1 layout - 3 browsers - 3 results?

2010-06-11 Thread Magnus
Hi Alejandro, I think you are replying to a post that I cancelled. I did so, because I managed to reproduce this behavior with a minimalistic piece of code so that it was clear that it must be a general issue. I found that here must be a problem in the GWT version that is not fixed yet:

Re: 1 layout - 3 browsers - 3 results?

2010-06-10 Thread Magnus
Hi Alejandro, thank you very much!!! This solution seems to be perfect for me! I played around a little bit. I Changed the base class for the ChessTable to DockLayoutPanel, to add some annotations to the chess board. This worked, too! Then I inserted a grid into the center section of

Re: 1 layout - 3 browsers - 3 results?

2010-06-10 Thread Magnus
Hi, there is a strange problem with the menubar in your example using IE8 (not with FF). When it opens a popup menu, the whole page disappears and only the popup menu is visible. The popup menu is added to the menubar as follows: MenuBar m= new MenuBar (true); m.addItem (Login,

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
On 8 Jun., 22:02, Ian Bambury ianbamb...@gmail.com wrote: If you add your own CSS, it doesn't go around trying to correct it. It's just what you do in GWT (using the widgets as they are meant to be use You mean I am using the panels in a way they were not made for? So this

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
Hi Ian, as longer I think about your advice, the more I like it. You could do interesting things within the resize code, e. g. hide some widgets if there is not enough room... However, before I give it a new try, I need some additional information: - If I calculate everything on my own: Which

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Ian Bambury
On 9 June 2010 11:42, Magnus alpineblas...@googlemail.com wrote: You mean I am using the panels in a way they were not made for? Yes. Currently they seem to be aimed at dividing the screen or viewport into different areas, the final (centre) area taking all the remaining space. So this

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Ian Bambury
On 9 June 2010 11:48, Magnus alpineblas...@googlemail.com wrote: Hi Ian, as longer I think about your advice, the more I like it. You could do interesting things within the resize code, e. g. hide some widgets if there is not enough room... However, before I give it a new try, I need some

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Stefan Bachert
Hi Magnus, When browsers allow to do a predicable layout than it is possible with GWT, too. GWT helps you more or less to overcome some bug, but it isn't perfect. GWT does not check style and try to workaround bug. GWT is able to create different approaches (css) for an specific browser AND

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
On 9 Jun., 14:07, Ian Bambury ianbamb...@gmail.com wrote: You mean I am using the panels in a way they were not made for? Yes. Currently they seem to be aimed at dividing the screen or viewport into different areas, the final (centre) area taking all the remaining space. So far, so good.

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
On 9 Jun., 14:11, Ian Bambury ianbamb...@gmail.com wrote:  E. g. to center a TextBox, I need its width in pixels. How do I get this? getWidth() ? but you just need to use 'margin:0 auto' What does this style mean? - What if I do not know the pixel sizes of child objects?  E. g. my

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
Strange is, that you show us two picture of IE and one of FF. But you are talking about two variants of FF and one of IE No! I made a screenshot of FF on my linux box before and put it on the net. Later I made a screenshot from IE showing the other screenshot.

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
On 9 Jun., 14:11, Ian Bambury ianbamb...@gmail.com wrote: You don't need a parent panel as such, just position it absolutely after adding it to the RootPanel. But how do I get the Resize-Event if I don't subclass an existing layout panel? Magnus -- You received this message because you are

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Ian Bambury
So far, so good. The point is that I add another layout pane to the remaining space. Where is the contradiction? You are trying to float a fixed=width widget in the centre of the screen. It doesn't matter now many times you nest it, it will still work the same way. I didn't actually write

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Ian Bambury
but you just need to use 'margin:0 auto' What does this style mean? It means that you need to look it up or ask in a forum dedicated to CSS. This forum is for GWT. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Ian Bambury
But how do I get the Resize-Event if I don't subclass an existing layout panel? Window.addResizeHandler(handler); -- 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.

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
Hi group, I have started writing the layout code using the onresize event, and I think this will be the solution I wanted. I created a class Display, derived from LayoutPanel,. But I am still missing information to layout my widgets. It is not that easy to geht width and height, als mentioned

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Alejandro D. Garin
Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also, the chess Widget should have 64 cells of the same height/width.? i.e. the cell doesn't change if the browser

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
Hi, everything you said is correct. Magnus On Jun 9, 5:09 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi, To be clear: What are you expecting to have in your layout scenario? i.e. A menu on top, a Chess Widget centered in the browser with same margins from top/left/right/bottoms? Also,

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Alejandro D. Garin
Hi, The code below is part of the task, but it center the main chess table in the dock center panel. Does this work for you or at least give some help? http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.html http://www.puntosoft.com.ar/gwt/layoutChess/LayoutChess.java

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped up with of JavaScript. Does this code belong to the solution or is it just generated from other sources? Magnus

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Alejandro D. Garin
Just from the webappcreator. Nothing special. On Jun 9, 2010 3:28 PM, Magnus alpineblas...@googlemail.com wrote: Hi Alejandro, this looks very good and I am still analyzing the java code. I will give you a more detailed feedback later... The java code looks clean, but the html file is pumped

Re: 1 layout - 3 browsers - 3 results?

2010-06-09 Thread Magnus
Hi Alejandro, forget my question about the html file. Following your link to the html file leads to the JavaScript hell. :-) But I managed to download the original source, which is quite friendly. I'll test and I'll answer! Many thanks! Magnus On Jun 9, 8:28 pm, Magnus

1 layout - 3 browsers - 3 results?

2010-06-08 Thread Magnus
Hello, after struggeling with the positioning of layout panels without a real solution (thread layout problems with positioning or aligning content) I found out that things are even worse: There are totally different results with different browsers: - Linux + Firefox 3.6.3 - Windows + Firefox

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread kozura
Not sure how many times this has been stated, but if you use the Layout panels as it seems you are, you must use standards mode by adding !DOCTYPE HTML to the top of your html file. Else your results are gonna be very problematic. On Jun 8, 9:33 am, Magnus alpineblas...@googlemail.com wrote:

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Magnus
This is the case for TestLayout.html: !doctype html Magnus On Jun 8, 6:08 pm, kozura koz...@gmail.com wrote: Not sure how many times this has been stated, but if you use the Layout panels as it seems you are, you must use standards mode by adding !DOCTYPE HTML to the top of your html file.

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Ian Bambury
I think your best bet is to use the onResize and just calculate it. CSS doesn't support centring vertically and I don't think GWT has any magic bullet either. Ian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Magnus
Hi Ian, does this mean that I have to do all the layout in absolute coordinates manually? I thought this would GWT do for me. In addition, the layout under IE 7 is totally broken. What is the whole set of layout panels good for, when it does not provide some predictable results? Magnus On Jun

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Ian Bambury
I'm sure someone will correct me if I'm wrong, but layout panels are more for using the whole of an area of the screen - header, footer, menu on the left, all the rest used for page display, that kind of thing rather than allowing you to float things at various places on the screen. For that, it

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Magnus
Is there a typo? top:50%;margin:top:-300px; Do you mean margin-top? I don't understand it. What's the effect of this? Magnus On Jun 8, 7:25 pm, Ian Bambury ianbamb...@gmail.com wrote: I'm sure someone will correct me if I'm wrong, but layout panels are more for using the whole of an area of

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Ian Bambury
Yep, a typo It sets the top to half way down the screen (top:50%) then moves it back up with the negative margin by half the height of the panel. The effect being that it is centred vertically. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Ian Bambury
I think you might need to use 'position:absolute' and set left and margin-left the same way. It's a long time since I've used it. On 8 June 2010 18:52, Ian Bambury ianbamb...@gmail.com wrote: Yep, a typo It sets the top to half way down the screen (top:50%) then moves it back up with the

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Magnus
Thanks, but it doesn't work, at least in one of the three environments: Linux + Firefox The inner panel (chess board) is always stretched vertically to fill the total height of the parent (see screenshot). Your CSS style changes something, but it's still stretched. I believe that it works for the

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread Ian Bambury
But what about the differences in the browsers? I thought that GWT manages them? If you add your own CSS, it doesn't go around trying to correct it. It's just what you do in GWT (using the widgets as they are meant to be used - or rather, as Google use them and not just how you want to use