Maximum size of settings window?

Is there a limit to how large the settings dialog can be displayed as ? Anything in the CSS that's bigger than about 400 by 300 currently doesn't get displayed, it just gets cropped to that. Well the content of the dialog is displayed still but it goes off the limits of the dialog... Is this the case, or am I missing a meta-setting which is over-riding my style sheet or setting the wrong element (I'm setting the size of <body>)?

Chris

[461 byte] By [Chrisull] at [2008-2-14]
# 1
I've done some testing, and you're right, there is a limit. As you say, the max size is 300 width, 400 height.

The next question is, why? A pain if you have lots of settings, you'd have to use tabs or a Flyout.

JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 2

Or if you want to dynamically change the contents of the window, such as taking settings options from an XML file! Well at least it's not just me and so I can look to work around it now I know it exists.

Chris

Chrisull at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 3

And is there also a size restriction on the docked gadget size (read height) in the sidebar? Does anyone know where I could find a list of the limits please, rather than just finding them via trial and error?

Chris

Chrisull at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 4

Continuing this long running conversation with myself

It seems that there might not be a restriction on the height or width - HOWEVER there seems to be some sort of bug with regards to setting the classname style, which has thrown me.

Consider:

You have a minimized gadget, whose body has a background image with a size and height:

body#set1

{height: 100px;

width:100px;

background: url (graphic1.jpg);

}

and a second larger setting with a bigger background:

body#set2

{height: 200px;

width:200px;

background: url (graphic2.jpg);

}

Changing the style settings from inital settings in the HTML eg

<body id="set1">

and changing it dynamically as:

document.body.className = "set2";

doesn't yield a resized gadget. Instead, it changes the background and keeps the gadget cropped... This is what was confusing me (hence I thought I'd hit another limit). Can anyone else replicate this?

Chris

Chrisull at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...
# 5

I'm listening . There's definately a restriction on the Settings size.

As for stylesheets, yes, it's a known bug. You need to set the size and background manually, there's a few other issues I discussed in this thread.

You can read more here

JonathanAbbott at 2007-9-3 > top of Msdn Tech,Gadgets,Sidebar Gadget Development...