Eli
Eli

Reputation: 14827

Position of modal dialog in sencha touch 2

I'm not able to position the modal dialog box under the button in sencha touch using top and left config of Ext.panel because it always stay at a specific position which is defined through the element.style when I inspect element using chrome(I think it is from sencha touch library) with !important properties that I cannot override it through css as well. Can someone help me to solve this problem? Thank you very much in advanced

Upvotes: 1

Views: 1611

Answers (1)

blessanm86
blessanm86

Reputation: 31789

Use the showBy method of components like

dialog.showBy(button);

Here is the documentation.

Upvotes: 1

Related Questions