|
|
@ -1395,9 +1395,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
WebView webView = new WebView(context) {
|
|
|
|
WebView webView = new WebView(context) {
|
|
|
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
|
|
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
|
|
|
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
|
|
|
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
|
|
|
setMeasuredDimension(
|
|
|
|
int w = getMeasuredWidth();
|
|
|
|
getMeasuredWidth(),
|
|
|
|
int h = getMeasuredHeight();
|
|
|
|
Math.max(tvBody.getMinHeight(), getMeasuredHeight()));
|
|
|
|
Log.i("WebView " + w + "x" + h);
|
|
|
|
|
|
|
|
setMeasuredDimension(w, Math.max(tvBody.getMinHeight(), h));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|