Add maxWidth attribute to rich:inplaceInput
-------------------------------------------

                 Key: RF-6974
                 URL: https://jira.jboss.org/jira/browse/RF-6974
             Project: RichFaces
          Issue Type: Feature Request
    Affects Versions: 3.3.1
            Reporter: John Leed


In situations where space is at a premium, it would nice to be able to 
constrain the maximum width of the rich:inplaceInput component so that large 
values do not disturb the layout.

I will attach screenshots of current and proposed behaviors. The proposed 
example (which is rough) uses the following:

<h:outputText value="To Recipients:"/>
<h:panelGroup layout="block" styleClass="clipped-inplace-select">
    <rich:inplaceInput label="To Recipients" id="toRecipients" 
value="#{form.currentEntity.toRecipients}"
        defaultLabel="Click to enter text" required="true" 
minInputWidth="100px">
        <f:validator validatorId="com.kroger.thmm.jsf.EmailAddressList" />
    </rich:inplaceInput>
</h:panelGroup>

.clipped-inplace-select {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space:nowrap;
        width:125px; 
}       
.clipped-inplace-select .rich-inplace{
        overflow: hidden;
        text-overflow: ellipsis;
        white-space:nowrap;
        max-width:125px; 
}       

There is some duplication in the CSS styles to keep IE7 compatibility. I 
imagine you guys can do better.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to