[Dojo-interest] sizing a BorderContainer - height must be absolute value?

John Cartwright John.C.Cartwright at noaa.gov
Thu Aug 21 16:43:13 UTC 2008


Perfect!  Thanks so much for your prompt response - just what I was 
looking for.

-- john


Peter E Higgins wrote:
> The nature of percentage sizes is that the parent node must have an
> explicit size as well. In this case (the "full screen UI"), the most
> common way to do this is by styling the body and html tags:
>
> body, html {
>     margin:0; padding:0; height:100%; width:100%;
> }
>
> as well as putting 100% on your borderContainer.
>
> Hope this helps,
> Peter Higgins
>
>
> John Cartwright wrote:
>   
>> Hello All,
>>
>> I'd like to create a BorderContainer that occupies 100% of the page in 
>> both the hight and width. However using code like:
>>
>> <div dojoType="dijit.layout.BorderContainer"
>>           design="headline" style="height:100%;width:100%;border:solid 
>> 3px;">
>>
>> I find that the height collapsed to nothing unless I put an absolute 
>> value in the height, e.g.
>>
>> <div dojoType="dijit.layout.BorderContainer"
>>           design="headline" style="height:800px;width:100%;border:solid 
>> 3px;">
>>
>> Is this a known limitation? Suggestions for a workaround?
>>
>> Thanks!
>>
>> --john
>> _______________________________________________
>> FAQ: http://dojotoolkit.org/support/faq
>> Book: http://dojotoolkit.org/docs/book
>> Forums: http://dojotoolkit.org/forum
>> Dojo-interest at dojotoolkit.org
>> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>>   
>>     
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>   


More information about the Dojo-interest mailing list