You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/08/31 15:47:00 UTC

[jira] [Commented] (OFBIZ-13512) jGrowl toast messages use wrong readmore-js option (maxHeight instead of collapsedHeight)

    [ https://issues.apache.org/jira/browse/OFBIZ-13512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18109945#comment-18109945 ] 

ASF subversion and git services commented on OFBIZ-13512:
---------------------------------------------------------

Commit 46be5e800fc45f05c19395460990ce7c14ed6a5b in ofbiz-framework's branch refs/heads/trunk from Mridul Pathak
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=46be5e800f ]

Fixed: jGrowl toast messages use wrong readmore-js option (OFBIZ-13512)

showjGrowlMessage initialized the vendored readmore-js plugin with maxHeight, but readmore-js has no such option — the real option is collapsedHeight. jQuery.extend silently drops unrecognized keys, so the plugin fell back to its default collapsedHeight of 200px, meaning jGrowl messages under 200px never showed the truncation toggle and taller ones collapsed at 200px instead of the intended 75px. Renamed maxHeight to collapsedHeight in the readmore() call.


> jGrowl toast messages use wrong readmore-js option (maxHeight instead of collapsedHeight)
> -----------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13512
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13512
>             Project: OFBiz
>          Issue Type: Bug
>          Components: theme/common-theme
>    Affects Versions: Upcoming Branch, 24.09.07
>            Reporter: Mridul Pathak
>            Assignee: Mridul Pathak
>            Priority: Minor
>
> showjGrowlMessage (OfbizUtil.js) initializes the vendored readmore-js plugin with maxHeight: 75, but readmore-js has no such option — the real option is collapsedHeight. Since jQuery.extend silently drops unrecognized keys, the plugin falls back to its default collapsedHeight: 200px, so jGrowl messages under 200px never show a truncation toggle, and taller ones collapse at 200px instead of the intended 75px.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)