Return-Path: X-Original-To: apmail-click-dev-archive@www.apache.org Delivered-To: apmail-click-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22FB610193 for ; Sat, 2 Nov 2013 22:50:20 +0000 (UTC) Received: (qmail 5830 invoked by uid 500); 2 Nov 2013 22:50:19 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 5813 invoked by uid 500); 2 Nov 2013 22:50:19 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 5806 invoked by uid 99); 2 Nov 2013 22:50:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Nov 2013 22:50:19 +0000 Date: Sat, 2 Nov 2013 22:50:19 +0000 (UTC) From: "Adrian A. (JIRA)" To: dev@click.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLK-601) TextField sets size when not appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLK-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian A. resolved CLK-601. --------------------------- Resolution: Fixed Fixed in Branch click-3.0.0 > TextField sets size when not appropriate > ---------------------------------------- > > Key: CLK-601 > URL: https://issues.apache.org/jira/browse/CLK-601 > Project: Click > Issue Type: Improvement > Components: core > Affects Versions: 2.1.0 RC1 > Reporter: WarnerJan Veldhuis > Assignee: Adrian A. > Priority: Trivial > Fix For: 3.0.0 > > > In the TextField class, the size attribute is *always* rendered regardless of the value of size. Since the size-attribute should be optional for the input-tag, it should be conditional, just as it is the case with maxLength and tabIndex. This would also mean that the default of 20 should be dropped. > current code: > buffer.appendAttribute("size", getSize()); > proposed code: > if ( getSize() > 0 ) { > buffer.appendAttribute("size", getSize()); > } > Since the HTML-spec says size is implied, it should only be added if there is any size. -- This message was sent by Atlassian JIRA (v6.1#6144)