Return-Path: Delivered-To: apmail-incubator-click-dev-archive@minotaur.apache.org Received: (qmail 74229 invoked from network); 28 Mar 2009 00:07:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Mar 2009 00:07:11 -0000 Received: (qmail 74119 invoked by uid 500); 28 Mar 2009 00:07:11 -0000 Delivered-To: apmail-incubator-click-dev-archive@incubator.apache.org Received: (qmail 74085 invoked by uid 500); 28 Mar 2009 00:07:11 -0000 Mailing-List: contact click-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-dev@incubator.apache.org Received: (qmail 74077 invoked by uid 99); 28 Mar 2009 00:07:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Mar 2009 00:07:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Mar 2009 00:07:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8E1EB234C003 for ; Fri, 27 Mar 2009 17:06:50 -0700 (PDT) Message-ID: <1064666300.1238198810567.JavaMail.jira@brutus> Date: Fri, 27 Mar 2009 17:06:50 -0700 (PDT) From: "Adrian A. (JIRA)" To: click-dev@incubator.apache.org Subject: [jira] Commented: (CLK-506) Smarter 2 column layout In-Reply-To: <2004181984.1238154291133.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLK-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690149#action_12690149 ] Adrian A. commented on CLK-506: ------------------------------- > ...when adding Controls you can specify their width (colspan). This has slipped me somehow. 'Width' is different than colspan, so how can I set the colspan for a control? > You also have CSS available to fine tune the layout. Yes, but in commercial webapplications with many screens this is not realistic. > By making Form too smart you start second guessing the user which leads to confusion. You are totally right. But there should also be very good defaults. For two columns the default behavior just doesn't looks right. This is only visible if you try my patch (the original FormProperties example has too few fields to make this visible - but non-trivial forms have more fields). > Smarter 2 column layout > ----------------------- > > Key: CLK-506 > URL: https://issues.apache.org/jira/browse/CLK-506 > Project: Click > Issue Type: New Feature > Components: core > Reporter: Adrian A. > Attachments: FromProperties.diff > > > Please make the auto-layout form in case of two columns to be smarter. > Right now it has many "glitches" (basically it's not very commercial application friendly :) ) that can be better seen if the FormProperties example has some more fields (see the attached patch). > Things that could be better/smarter for two columns: > - it should put some space between the columns > - it should take in consideration the different sizes of fields, especially for : > - long textfields > - textareas in most cases (since they mostly take more place > - RadioGroup in horizontal layout > and span them on two columns (put only one control on a row if it's big) "colspan=2". > I know that I could use my own layout, but just simply using $form is a too huge help :). 2Columns would do > most cases for commercial applications with more fields - if it were only a little smarter. > Thank you, > A. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.