0

In ExtJS when I scroll browser window Ext.window.window stays on same position on Viewport. I would like to fix this window on it's absolute position.
I saw documentation says:

fixed : Boolean Configure as true to have this Component fixed at its X, Y coordinates in the browser viewport, immune to scrolling the document.

Defaults to: false

But does not work for me. What I am missing? How to fix window in it's absolute position and don't scroll on browser scroll?

7
  • Please create a sencha fiddle. Will help to understand better Commented Nov 25, 2015 at 9:10
  • check this url. fiddle.sencha.com/#fiddle/11kf Commented Nov 25, 2015 at 11:27
  • when I set fixed: true, it works. right? The window is at same position, even page is scrolled. Commented Nov 25, 2015 at 11:38
  • click left menu several times while right panel makes scroll. and than click "add window" button. I know the problem is fixed height of panel. but this is my layout Commented Nov 25, 2015 at 11:39
  • No I want fixed: false and not works Commented Nov 25, 2015 at 11:40

2 Answers 2

1

This part works. But still, are you concerned about constrain?

 handler: function(button){
                                var w = Ext.create('Ext.window.Window', {
                                    height: 150,
                                    width: 200,                                        
                                    renderTo: button.up('fieldset').getEl().dom,
                                    title: 'child window'                                      
                                });

                                this.up('fieldset').add(w);
                                w.show();
                            }
Sign up to request clarification or add additional context in comments.

1 Comment

thanks this line renderTo: button.up('fieldset').getEl().dom, "super" works. but I have another problem. I leave constrain: true and window which added is not in center
0

Like this maybe:

handler: function(){
    var w = Ext.create('Ext.window.Window', {
        height: 150,
        width: 200,
        title: 'child window',
    });

    this.up('fieldset').add(w);
    w.show();
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.