Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-08 Thread Ian Bambury
Sorry, I was wrong. Transitional without a URI will put your browser into quirks mode, with a URI it will be in standards or almost standards mode. I got confused with strict, which doesn't change if you miss out the URI. 'quirks' means 'with all the wrong stuff' - all those browser quirks you

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-07 Thread JohnMudd
I've given up on the original problem, setCellWidth() with percents. I'm trying a new, hopefully simpler, direction but I have a new problem. I'm now just trying to get by with setPixelSize(). Here's my new sample code. My first problem with the output is that I get a scroll bar on the right.

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-07 Thread Ian Bambury
I would guess that you missed a doctype - try !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; I think that might change things, maybe not for the better. But the basic problem is what? Forget the 'how' for a moment. You want an HP with 2

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-07 Thread JohnMudd
Thanks. The new doctype changed the output but, as you guessed, the effect is interesting but not what I wanted. The panels collapsed to minimum size. My basic problem is layout. I just need to nest panels without unexpected results. I've given up on auto-resize. I'll either write code to

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-07 Thread Ian Bambury
Hi John, Here's a working example of two labels in an HP which will stick at 30-70 wide and 100% high. You *must* have the doctype, and you must put the html, body css in as css not in code. Most of the rest can go in as css, but I've done it here for clarity. The code is arranged so that you

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-07 Thread JohnMudd
About the doctype... Are you saying I need any doctype or I need the specific one you suggested? I was using this from GWT 1.5. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Does GWT now suggest running in standard mode instead of quirk mode? I was having better luck in

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-07 Thread Ian Bambury
You should be OK with that, it's what's recommended,isn't it. I haven't gone too deeply into doctypes (for that read 'not at all, really') it's the same as the one I mentioned, just that mine had the dtd location - it's just the spec, really - you can download the 'loose' one (for transitional)

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-06 Thread JohnMudd
Thanks Ian. I'll work on it a bit first and then try to restate it. On Nov 5, 7:12 pm, Ian Bambury [EMAIL PROTECTED] wrote: Hi John, Could you restate your problem as it is now. Ian http://examples.roughian.com --~--~-~--~~~---~--~~ You received this

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-05 Thread JohnMudd
I'm back. I looked at gwt-ext but that doesn't look like a good alternative for me. I was having good luck with layouts, the demo page http://www.gwt-ext.com/demo/ is impressive but I would only recommend gwt-ext it you are absolutely sure you'll never need to deviate from the sample code in

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-11-05 Thread Ian Bambury
Hi John, Could you restate your problem as it is now. Ian http://examples.roughian.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-23 Thread walden
...or did you mean GXT and gwt-ext? Confusing, amen. On Oct 22, 3:12 pm, JohnMudd [EMAIL PROTECTED] wrote: Sorry, this is really confusing.  I mean Ext GWT and GWT-Ext.http://www.ongwt.com/post/2008/04/22/MyGWT-is-dead-Long-live-Ext-GWT On Oct 22, 3:09 pm, JohnMudd [EMAIL PROTECTED] wrote:

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-22 Thread JohnMudd
Can I sidestep issues with these widgets by switching to MyGWT or gwt- ext? John On Oct 18, 11:26 pm, JohnMudd [EMAIL PROTECTED] wrote: Cool, I got issue number 3000.  Nice round number.http://code.google.com/p/google-web-toolkit/issues/detail?id=3000 On Oct 18, 11:14 pm, JohnMudd [EMAIL

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-18 Thread JohnMudd
Cool, I got issue number 3000. Nice round number. http://code.google.com/p/google-web-toolkit/issues/detail?id=3000 On Oct 18, 11:14 pm, JohnMudd [EMAIL PROTECTED] wrote: I have to hand it to you, your changes (summarized below) do produce the desired 50% height in the log message.  But it's

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-17 Thread Ian Bambury
Hi John, Your basic problem is that you don't have an absolute height for anything in there. Any percentage of zero is zero and, depending on which browser you use, you will get an override/default of some sort. Another problem is that the bodyPanel doesn't have any content, and some browsers

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-17 Thread JohnMudd
Thanks Ian, To test the effect of using an absolute size I replaced this line: basePanel.setSize(100%, 100%); with this: basePanel.setPixelSize(200, 200); The new output in compiled mode still shows appPanel and bodyPanel with the same dimensions. root 1103 200 basePanel 200 200 --

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-17 Thread Ian Bambury
OK, One more guess... You've only got one TD in your appPanel so it's going to fill the whole height anyway. If that doesn't fix it, I'll try running your code on my machine (Windows) and see what happens in practice instead of theory - I'm good at fixing things in theory :-) Ian

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-17 Thread JohnMudd
Ok, I'm going to try GWT 1.5. On Oct 17, 8:52 pm, Ian Bambury [EMAIL PROTECTED] wrote: OK, One more guess... You've only got one TD in your appPanel so it's going to fill the whole height anyway. If that doesn't fix it, I'll try running your code on my machine (Windows) and see what

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-17 Thread JohnMudd
Wow, here are the results from gwt-linux-1.5.3. What's so surprising/ frustrating is that layout seems so fundamental to me. How could this not work as expected? From 1.5 compiled mode: root 1103 200 basePanel 200 200 logPanel 87 200 -- 87 is 30% of 200? (Not that ver 1.4 GWT did better)

Re: layout problem, panel size ignores setCellHeight(50%) ?

2008-10-17 Thread Ian Bambury
Try this. Works for me. You might need a doctype Ian http://examples.roughian.com root.add(basePanel); basePanel.setSize(100%, 200px); basePanel.add(logPanel); basePanel.setCellWidth(logPanel, 30%); basePanel.setCellHeight(logPanel, 100%);