PDA

View Full Version : How to fix height and widht for all browsers ?



Anup Rana
23 Nov 2010, 11:43 PM
I am using window in which i am setting height and width of the window.It is displayed perfeclty in FireFox but when i am using another monitor it size changes.
How do i keep the same size for all size of monitor and all browsers ?

Condor
23 Nov 2010, 11:59 PM
An Ext.Window with fixed width and height should display the same on all browsers (but the state manager could still affect the size).

Or did you meant the browser viewport? In that case you should be using an Ext.Viewport.

Anup Rana
24 Nov 2010, 12:46 AM
I am using window inside viewport.But the window size changes with different size of monitors.

Condor
24 Nov 2010, 12:53 AM
And you configured the Ext.Window with fixed height and width (and stateful:false if you are using a state manager)?

Anup Rana
24 Nov 2010, 12:56 AM
No i am not using the stateful:false property.


mapping_UEST = new Ext.Window({
renderTo : document.body,
title : 'Mapping History',
layout : 'fit',
plain : true,
closable : false,
draggable : false,
x : '755px',
y : '53px',

height : 495,
width : '350px',
items : [grid_mapping]
});

Condor
24 Nov 2010, 1:17 AM
x, y, height and width need to be numbers and not strings.

Anup Rana
24 Nov 2010, 1:28 AM
Previously i had applied numbers to x,y,height and width but it was not working for all the screens.

Condor
24 Nov 2010, 1:48 AM
Are you using a state manager? In that case your window should also contain stateful:false.

Anup Rana
24 Nov 2010, 1:52 AM
No i am not using state manager..

Condor
24 Nov 2010, 1:59 AM
Are you are using numbers for x, y, width and height now?

Could you post screenshots with the differences (easiest to upload to imageshack.us and post links).