int calculateWidth() {

        int result;
        if (m_inline && CmsDomUtil.getCurrentStyle(getElement(), Style.display).equals("inline")) {
            com.google.gwt.dom.client.Element parentBlock = getElement().getParentElement();
            while (CmsDomUtil.getCurrentStyle(parentBlock, Style.display).equals("inline")) {
                parentBlock = parentBlock.getParentElement();
            }
            result = parentBlock.getOffsetWidth();
        } else {
            result = getElement().getOffsetWidth();
        }
        return result - 2;
    }
int calculateWidth ( ) { int result ; if ( m_inline && CmsDomUtil . getCurrentStyle ( getElement ( ) , Style . display ) . equals ( "inline" ) ) { com . google . gwt . dom . client . Element parentBlock = getElement ( ) . getParentElement ( ) ; while ( CmsDomUtil . getCurrentStyle ( parentBlock , Style . display ) . equals ( "inline" ) ) { parentBlock = parentBlock . getParentElement ( ) ; } result = parentBlock . getOffsetWidth ( ) ; } else { result = getElement ( ) . getOffsetWidth ( ) ; } return result - 2 ; }
Calculates the widget width.<p>

@return the widget width