-
23 Aug 2012 5:06 AM #1
Answered: popup window not appearing in the center of page
Answered: popup window not appearing in the center of page
Hi,
I have a popup window as described below. This window is not appearing on the center of page when I try to open it on a button click.
code for button click
and appEmpfehlenPopup.jsCode:myapp.views.appEmpfehlenPopup.showBy(btn);
Code:myapp.views.appEmpfehlenPopup = new Ext.Panel({ floating: true, centered: true, modal: true, width: 500, height: 200, border:0, styleHtmlContent: true, items:[ { xtype:'box', html:loadURL('app/views/facebookbutton.html') }, { html:loadURL('app/views/twitter.html') } ], dockedItems: [{ xtype: 'toolbar', cls:'welcometoolbar', title: 'Weitersagen über:', items: [] }] });
-
Best Answer Posted by mitchellsimoens
You are showing it via the showBy method which will align it to what you pass it. To show it centered, have centered : true and just use show()
-
26 Aug 2012 7:05 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
You are showing it via the showBy method which will align it to what you pass it. To show it centered, have centered : true and just use show()
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Aug 2012 6:59 PM #3


Reply With Quote