PDA

View Full Version : Screen Resolution Issue



samarth
24 May 2012, 4:33 AM
Hi folks,
I am using Extjs 3.4.



var browserWidth=(screen.width*(12.7/100));
var browserHeight=(screen.height*(24/100));




var win = new Ext.Window({
closable : false,
renderTo:Ext.getBody(),
id:'Logwindow',
//constrainHeader:true,
border:false,
layout:'anchor',
anchor:'100% 100%',
floating: true,
x: browserWidth,
y: browserHeight,
resizable:false,
height:windowScreenHeight,
width:windowScreenWidth,
shim:false,
frame:false,
shadow:false,
draggable:false,
constrain:true,
items:loginForm //form in which login form is there
});
win.show();





In this i have used two variables browserWidth and browserHeight to move window. It is working my pc and some other pc which is having common resolution. When i see in other pc with big screen width having more than common resolution or connected to a projector then this window won't fit in the proper way. Can any one help me in this issue.

Thanks in advance.

scottmartin
28 May 2012, 4:31 PM
What value is returned on the screens that do not work?

Scott.

samarth
28 May 2012, 7:53 PM
What value is returned on the screens that do not work?

Scott.

Hi Scott,
No it is not working well in all resolution

willigogs
29 May 2012, 12:28 AM
Hasn't this problem already been posted (and solutions proposed)?

http://www.sencha.com/forum/showthread.php?208150-Screen-Resolution-Issue

samarth
29 May 2012, 12:34 AM
Hasn't this problem already been posted (and solutions proposed)?

http://www.sencha.com/forum/showthread.php?208150-Screen-Resolution-Issue

Still it has some problem. So i solved in my own way. Thanks willigogs for your reply.