@Override public Rectangle computeTrim() { return Geometry.add(super.computeTrim(), fText.computeTrim(0, 0, 0, 0)); }
@Override public Rectangle computeTrim() { return Geometry.add(super.computeTrim(), fText.computeTrim(0, 0, 0, 0)); }
@Override public Rectangle computeTrim() { Rectangle trim= super.computeTrim(); if (isResizable()) { boolean RTL= (getShell().getStyle() & SWT.RIGHT_TO_LEFT) != 0; if (RTL) { trim.x-= fgScrollBarSize.x; } trim.width+= fgScrollBarSize.x; trim.height+= fgScrollBarSize.y; } return trim; }
@Override public Rectangle computeTrim() { Rectangle trim= super.computeTrim(); if (isResizable()) { boolean RTL= (getShell().getStyle() & SWT.RIGHT_TO_LEFT) != 0; if (RTL) { trim.x-= fgScrollBarSize.x; } trim.width+= fgScrollBarSize.x; trim.height+= fgScrollBarSize.y; } return trim; }