Results 1 to 2 of 2

Thread: [2.3.1] How to open maximies dialog

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

    Question [2.3.1] How to open maximies dialog

    Hi,

    how can I open a maximed dialog which I can still restore?

    Currently I have something like below, that looks weird when the dialog is opened (as you can see it is resized after opening). I want to open it maximized and then still be able to restore it to the "original" size and location.

    Code:
    addListener(Events.Attach, new Listener<BaseEvent>() {
    			public void handleEvent(BaseEvent be) {
    				Scheduler.get().scheduleDeferred(new ScheduledCommand() {
    
    					public void execute() {
    						maximize();
    					}
    				});
    			};
    		});
    Thanks in advance for any help.
    Mariusz

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

    Default

    I already found an answer

    Code:
    protected void afterShow() {
    		super.afterShow();
    		maximize();
    	};

Posting Permissions

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