Update Android port
* java/org/gnu/emacs/EmacsView.java (onLayout): Provide for occasions where the saved measured dimensions differ from that saved by the view.
This commit is contained in:
parent
ecb1e6c713
commit
55dd110cf3
1 changed files with 8 additions and 2 deletions
|
@ -330,11 +330,17 @@ else if (MeasureSpec.getMode (heightMeasureSpec) == MeasureSpec.AT_MOST
|
|||
measuredHeight = bottom - top;
|
||||
}
|
||||
|
||||
/* If oldMeasuredHeight or oldMeasuredWidth are wrong, set changed
|
||||
to true as well. */
|
||||
|
||||
if (right - left != oldMeasuredWidth
|
||||
|| bottom - top != oldMeasuredHeight)
|
||||
changed = true;
|
||||
|
||||
/* Dirty the back buffer if the layout change resulted in the view
|
||||
being resized. */
|
||||
|
||||
if (changed && (right - left != oldMeasuredWidth
|
||||
|| bottom - top != oldMeasuredHeight))
|
||||
if (changed)
|
||||
{
|
||||
explicitlyDirtyBitmap ();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue