-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[com_fields] Contact: Messed Value in "Show User Custom Field" #13594
Comments
If you click on it and then release it, the full text is shown. Don't know if this is a bug in the JS library or browser, @DGT41 and @infograf768 any clue why this can happen? |
Element style gets a fixed width of 90px. |
So is this something we can solve? |
Looked at the js files loaded and did not see any difference. I could sove it locally by adding .chzn-container-multi .chzn-choices li.search-field input[type="text"] {
margin: 1px 0;
padding: 0;
height: 25px;
outline: 0;
border: 0 !important;
background: transparent !important;
box-shadow: none;
color: #999;
font-size: 100%;
font-family: sans-serif;
line-height: normal;
border-radius: 0;
min-width: 187px !important; /// Added here.
} I don't know of any chzn which uses in Joomla a width below 187px. |
So should we add that rule to the Isis template of what is your suggestion? |
It certainly would work is we add: .chzn-container-multi .chzn-choices li.search-field input[type="text"] {
min-width: 187px !important;
} in ROOT/administrator/templates/isis/less/chzn-override.less But it looks like a hack to me as the issue is likely to be in the implementation of com_fields. |
I have no clue and it doesn't happen both in Firefox and Chrome her eon my Windows Laptop. So can't comment on it. It's certainly not related to com_fields by itself. The formfield in question is a regular list field where only the getOptions method is overriden. The hint is created by |
I experienced this issue as well see https://www.screencast.com/t/dDPWttlRH |
The reason is that chosen.js calculates the width of the INPUT depending on the width of it's outer container. https://github.com/joomla/joomla-cms/blob/staging/media/jui/js/chosen.jquery.js#L1340 Because somebody added in template.css of Isis an important! width of 100% for the container the INPUT width is caclculated too small:
So: Remove the width here and find another selector to limit the width! EDIT: I removed the whole CSS block above and the placeholder is no longer truncated and also the width is correct. |
Unfortunately this pr doesn't solve this issue here, the pr got merged over two months ago and we still have the issue. |
Sounds like a very similar issue to #11835 . Possibly related somehow. |
Guess it is about the same thing. |
I said/meant that PR #13586 is the REASON for "misbehavior" that we have now!! This PR must be reverted/corrected/whatever!! |
Thanks @ciar4n!! |
Steps to reproduce the issue
"Contacts: Edit" > Tab "Display": Field "Show User Custom Field" Text inside Value is messed:

System information (as much as possible)
Joomla! 3.7.0-alpha2-nightly
macOS Sierra, 10.12.2
Firefox 50.1.0
PHP 7.0.4
MySQLi 5.5.53-0
The text was updated successfully, but these errors were encountered: