Ah, makes sense. Perhaps just this, then?
```
final int widthOfContentEditor = Math.min(mContentEditText.getWidth(), mContentEditText.getHeight());
```
That way no assumptions are made about the screen size.