[richfaces-issues] [JBoss JIRA] Updated: (RF-6974) Add maxWidth attribute to rich:inplaceInput
John Leed (JIRA)
jira-events at lists.jboss.org
Wed Apr 29 17:44:46 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-6974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Leed updated RF-6974:
--------------------------
Attachment: screenshot-2.jpg
Proposed behavior of inplace input with maxWidth attribute. Note ellipsis on To Recipients field.
> 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
> Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> 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
More information about the richfaces-issues
mailing list