diff --git a/app/views/libraries/show.html.erb b/app/views/libraries/show.html.erb
index 252dddec..8c55b63a 100644
--- a/app/views/libraries/show.html.erb
+++ b/app/views/libraries/show.html.erb
@@ -100,8 +100,12 @@
});
$(function(){
var height=document.getElementById("private_reason_ul").offsetHeight;
+ var one=parseInt($("#private_reason_ul").find("li").eq(0).height())+10;
+ var two=parseInt($("#private_reason_ul").find("li").eq(1).height());
+ var plus=one+two;
if(parseInt(height)>166){
$("#actionPanel").html('点击展开');
+ $(".private_reason").css({maxHeight:plus+"px"});
}
})
\ No newline at end of file