Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
37
rated 0 times [  40] [ 3]  / answers: 1 / hits: 15246  / 11 Years ago, sat, april 13, 2013, 12:00:00

I am trying to show list of comments in a panel using dotdotdot plugin but result is not cheering:



comments



From below xhtml code:



<li>
<h:link value=#{Comment.commentAuthorName}: id=goToProfileWithAuthorName
outcome=/profile.xhtml type=submit
style=text-decoration:none;font-weight:bold;font-size: 11px;color: rgb(120,120,159);>
<f:param name=userId value=#{Comment.comauthorId}/>
</h:link>

<div id=wrapper>
#{Comment.commentText}
</div>
<br></br>
<abbr class=timeago title=#{Comment.commentDate}
style=color: #778899;font-size: 10px;>
</abbr>

<br/>
</li>


And below js code:



$(document).ready(function() {
$(#wrapper).dotdotdot({
// configuration goes here
});
})


If I resolve the overflowing issue I could solve vertical size issue maybe but something is not correct about dotdotdot I guess. Let me show you one more weird thing:



dotdot2



As you can see, it seems div(wrapper) width value calculated correctly but text is keep overflowing. What can be the reason?



Thanks for helping.


More From » jquery

 Answers
16

Try this



div#wrapper{
word-wrap: break-word;
}

[#78932] Thursday, April 11, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tajo

Total Points: 415
Total Questions: 124
Total Answers: 103

Location: North Korea
Member since Tue, Jun 16, 2020
4 Years ago
;