Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 77824 invoked from network); 20 Jun 2007 15:28:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 15:28:20 -0000 Received: (qmail 31816 invoked by uid 500); 20 Jun 2007 15:28:10 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 31768 invoked by uid 500); 20 Jun 2007 15:28:10 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 31744 invoked by uid 99); 20 Jun 2007 15:28:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 08:28:10 -0700 Received-SPF: pass (herse.apache.org: domain of weber.volker@googlemail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 08:28:06 -0700 Received: by wa-out-1112.google.com with SMTP id l24so170212waf for ; Wed, 20 Jun 2007 08:27:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mG9zl2v9aOqfsoD/deTUTyeTkxWNzHIlqGLpcr8NWOcqBplAAjsaG6KfA1Uo2PC4ILr6sLfjZHlM3P6dgDFxxLmbg5VIYC5DhRkfzw6YwoQuBh8/JLAR+uCjm4BsL8CCrrC5YObqs4eod1r2GD/V6dV3Ga/s2u71wctcQ5lhE6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=gHhYyPRiyUDONU0MK2uSADr8meHcNK3Ogt/DcKuPNP0Ub6rewbbxMSWR++nm++a6l8KfpEVL5dATvdjfC0QSM+KAS1q3xjJAtlWNP7/67eF9LuoDEUo6hCD/96u9DPF3j2xQQnlpLguJBgDBnNjPUji7AN1AHYPEr3Swy+Qy7QQ= Received: by 10.114.77.1 with SMTP id z1mr420475waa.1182353255269; Wed, 20 Jun 2007 08:27:35 -0700 (PDT) Received: by 10.114.154.16 with HTTP; Wed, 20 Jun 2007 08:27:35 -0700 (PDT) Message-ID: <9a64d7d10706200827n337bb896sc563e5aafdd2c3f6@mail.gmail.com> Date: Wed, 20 Jun 2007 17:27:35 +0200 From: "Volker Weber" Sender: weber.volker@googlemail.com To: "MyFaces Discussion" Subject: Re: [Tobago] How does tc:gridLayout fix the overall page size? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 3dc2d6151cccfde7 X-Virus-Checked: Checked by ClamAV on apache.org Hi Zied, you need at least specify the width and height in the page tag. You can additionally add a implementation of PageState as state. With this tobago can calculate the correct browser size. see the addressbook example: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tags/layout/basic.tag?view=markup http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Layout.java?view=markup Regards, Volker 2007/6/20, Zied Hamdi : > Hi Tobago Team, > > I have a problem with the sizes of my components. I have a first page with > the following layout code: > > > > > > > > > > > > > > ...some comps... > > > > > > > > > > > > > > > > > > > > > > > > in the included file I have a big componenent of 650px (at least): > > personDetailTabs.jsp: > > > > > > > > > > > > > > > > > > label="#{i18n.save}" transition="true" /> > label="#{i18n.cancel}" transition="true" /> > > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > ... > > > > I was expecting to have the contents of personDetailTabs.jsp on 650 pixels, > but the whole page is on some 770 pixels (that leaves a small piece for the > desired part and a big blanc under it: see image1.png). > > I've tried to avoid putting pixels by doing rows="250px;1*" instead of rows > ="250px;400px", but that leads to have even less desired effects because the > space reserved to the 1* is put under a scroll pane (see image2.png ) > > In both cases the lower component is the same (even if it was set to > rows="300px;20px;1*"). > > It seems the server side computation supposes a certain size for the screen > and doesn't take this property from the browser. If it's the case, what do > you suggest please? > > Regards, > Zied >