Change gadget title and gadget width

Hi,

I got 2 problems with Space gadget:

- setTitleText: due to SDK, it only works with inline gadget. But when upload gadget, we are forced to set non-inline gadget. Is there any way to change the gadget title dynamically

- I view source and saw one css class: FullRegionWidth which helps the gadget to occupy the full width. How to make my gadget full width

Thanks,

Bao Nguyen




Answer this question

Change gadget title and gadget width

  • ashk1860

    Oh, yeah, that. Sorry, misunderstanding there :). You have no control over that. The Spaces guys determined what would be a maximum size for a gadget, and so when you put a gadget in a wide column it only sizes up to half-width. I assume this is a nod to the fact that most people run live.com in multi-column mode, and thus most gadgets are optimal at a smaller width.
  • re infecta

    Thanks ToddOs,

    I am not quite sure about your answer for 2nd question. Sorry for the confusion, let me clarify:

    When you develop a gadget and add to your space, for example, above the blog part. Your gadget occupy only half of the blog part's width. I wonder we can make the gadget to be full width as the blog part

    Thanks,

    Bao Nguyen



  • ideal24293

    1. Non-Microsoft gadgets are not allowed to run inline for security purposes (and many Microsoft gadgets don't run inline either). Thus, there's currently no way for you to dynamically update your title text. If you need such functionality, consider putting an element near the top of your gadget inside the frame that you can update instead.
    2. You shouldn't have to do anything special. A block element like a div, when set to "width: auto;" and not floated, should fill the entire available width without going over (forcing scrollbars or hiding info, depending on the state of the overflow style). IE6 sometimes doesn't play nicely with block-element widths, so you might find yourself setting a width specifically (depending on the content and other styling considerations, I've found width:95% or width:97% usually gets me as close as possible to full width without forcing scrollbars). I'd recommend you initially target better browsers such as IE7, Firefox, and Opera, and then go back and add browser check-scoped fixes to hack support for IE6.


  • Change gadget title and gadget width