PDA

View Full Version : Viewport size too large for window



koenyn
18 Jan 2011, 11:17 PM
Hi there,

I've added a viewport with a simple panel to my test application and while the viewport is working, the issue I have is that it is taking up more than the window size that it should?
The viewport extends about 50 pixels too far right and down and so the border disappears outside my viewing area.
I'm not sure if anyone has any ideas on how to fix this. Code is listed below (not complicated at all)
What am I not getting. I attached an image with the problem, though I think it'll be too small to actually see the problem,


Ext.onReady(function() {
viewport = new Ext.Viewport({
layout : 'fit',
items : [{
title : 'Something'
}]
});
});

Condor
19 Jan 2011, 3:09 AM
That doesn't look like the default ext-all.css stylesheet. I assume your own stylesheet is overriding the viewport defaults.

koenyn
19 Jan 2011, 3:17 AM
Wow Condor, You rock! Thanks! I had put a padding of 10px on the body tag in the HTML and that threw off the viewport.