Package com.google.gdt.eclipse.designer.hosted

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell.computeTrim()


    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      shell.setSize(shellBounds.width, shellBounds.height);
    }
  }

  @Override
View Full Code Here


    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      if (state.isStrictMode() && !state.isBrowserWebKit()) {
        shellBounds.width += SIZE_EXPAND;
        shellBounds.height += SIZE_EXPAND;
      }
      shell.setSize(shellBounds.width, shellBounds.height);
View Full Code Here

    afterApply();
    // set Shell size
    IBrowserShell shell = m_widget.getState().getShell();
    shell.prepare();
    org.eclipse.swt.graphics.Rectangle shellBounds =
        shell.computeTrim(0, 0, size.width, size.height);
    shell.setSize(shellBounds.width + SIZE_EXPAND, shellBounds.height + SIZE_EXPAND);
  }

  private void doApply(Dimension resourceSize) throws Exception {
    if (!isSizeAlreadySet()) {
View Full Code Here

    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      shell.setSize(shellBounds.width, shellBounds.height);
    }
  }

  @Override
View Full Code Here

    afterApply();
    // set Shell size
    IBrowserShell shell = m_widget.getState().getShell();
    shell.prepare();
    org.eclipse.swt.graphics.Rectangle shellBounds =
        shell.computeTrim(0, 0, size.width, size.height);
    shell.setSize(shellBounds.width + SIZE_EXPAND, shellBounds.height + SIZE_EXPAND);
  }

  private void doApply(Dimension resourceSize) throws Exception {
    applySizeUsingScript(resourceSize);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.