Ask questions and get good answers on jQuery

vote up 1 vote down
star

On the site we are building you get a fixed height of 278px on containers where the content is higher than this 278px. Is the content lower than the container doesn't get a fixed 278px height.

The thing is we don't want a fixed height. How can we disable it, or did we get this problem because we build our own containers with different size?

Your sincerely,

John

flag

1 Answer

vote up 0 vote down

If you don't set a height in the metadata parameter than the container will get the size from the content; otherwise, if you set a height it must be an int and it will be get as px and not as percentage. Anyway I notice that there's a bug that should be fixed for next release...

link|flag
I want dynamic height of the inserted content, so I don't add any height to the mbcontainer. After testing on different systems the height of the mbcontainer gets the height of the available size of the browser. So when you have full-screen you get for example height 800px en when you have a small resized window open you can get 10px. Below is an example of what I did and got as response. HTML code: <div class="c"> <div class="mbcontainercontent"> Result: <div class="c" style="height: 494px;"> <div class="mbcontainercontent" style="height: 494px;"> – John Jan 18 at 14:25
1 
The problem is related to this part of the javascript mbContainer.js on row 131 var nwh=$(window).height(); if (container.outerHeight()>nwh) container.find(".c:first , .mbcontainercontent:first").css("height",(nwh-20)-container.find(".n:first").outerHeight()-(container.find(".s:first").outerHeight())); – John Jan 18 at 15:10

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.