Hi guys i'm using a dijit dialog and have populated it with certain controls and i've set an initial style and positioning to it but when i resize the browser window the dialog positions changes, it stretches all the way to the center which i assume is the default position of the dijit dialog. How can i prevent this from occurring?
Below is the code I've used to perform the styling.
dojo.style(searchDialog.domNode, 'visibility', 'hidden');
searchDialog.show().then(function () {
dojo.style(searchDialog.domNode, 'top', '10px');
dojo.style(searchDialog.domNode, 'right', '40px');
dojo.style(searchDialog.domNode, 'left', '');
dojo.style(searchDialog.domNode, 'visibility', 'visible');
});
Thanks,
Ryan