private int calculateMenuMargin(){
  WindowManager wm=(WindowManager)getSystemService(Context.WINDOW_SERVICE);
  Display display=wm.getDefaultDisplay();
  Point size=new Point();
  display.getSize(size);
  int height=size.y;
  return (int)Math.round(height * MENU_MARGIN_RELATIVE_MODIFIER);
}

private int calculateMenuMargin ( ) { WindowManager wm = ( WindowManager ) getSystemService ( Context . WINDOW_SERVICE ) ; Display display = wm . getDefaultDisplay ( ) ; Point size = new Point ( ) ; display . getSize ( size ) ; int height = size . y ; return ( int ) Math . round ( height * MENU_MARGIN_RELATIVE_MODIFIER ) ; }
method that calculates space left for edittext when format text panel is visible
