Results 1 to 7 of 7

Thread: [2.3.0] Dialog in Web Desktop - maximize does not work correctly

  1. #1
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    306

    Exclamation [2.3.0] Dialog in Web Desktop - maximize does not work correctly

    Hi,

    when a Dialog has any button defined, maximization doesn't work correctly, that button bar at the bottom is not visible. If I remove all buttons then it works fine. How I can fix that behavior?

    final Dialog simple = new Dialog();
    simple.setHeadingHtml("Dialog Test");
    simple.setMaximizable(true);
    simple.setButtons(Dialog.YESNO);
    simple.addText("Test");
    simple.setScrollMode(Scroll.AUTO);

    simple.show();

    Thank you,
    Mariusz Pala

  2. #2
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    306

    Default

    Any clue why the button bar is hidden after maximizing? I can actually scroll the windows to see it, but that's not how it suppose to work. Any help appreciated.

    Thank you,
    Mariusz

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    This is just a guess without running any testcase:

    If you have not defined any container, its maximiazed against the Viewport. That will not work in the Desktop due to the bottom bar.

    You need to set the container of the Window to the inner desktop: http://www.sencha.com/gxtdocs/codese...indow&line=764

  4. #4
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    306

    Default

    After the dialog is created we call com.extjs.gxt.desktop.client.Desktop.addWindow method which sets the container correctly:
    public void addWindow(Window window) {
    if (windows.add(window)) {
    window.setContainer(desktop.getElement());
    window.addWindowListener(listener);
    }
    }

    As a test case - just take you Web Desktop example and add some buttons to any dialog, then maximize it.

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    After the dialog is created we call com.extjs.gxt.desktop.client.Desktop.addWindow method which sets the container correctly:
    That piece of information was missing in your initial post. I will try to reproduce this.

  6. #6
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    306

    Default

    Any update on this?

    Thank you,
    Mariusz

  7. #7
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    306

    Default

    Solution: edit desktop.css and comment the line below

    Code:
    .x-window-maximized .x-window-bc {
      /* height: 0; */
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •