IE Problem with changing div height
Hi,
I created a div which can be minimized and expanded.
In normal condition the div is as high as the content.
If you need space you can collapse it to just the height
of the box bar for the title.
To make this work I just insert a extra class at the most outer
div of this box. The CSS declaration looks like this:
-
.hiddenW .jq-infopanel-showHide {
height: 0!important;
overflow: hidden;
padding: 0 10px!important;
}
.jq-infopanel-showHide { height: 100%; }
This works fine in FF. But IE is changing the box height only
sometimes or if I moving it (UI draggable). Replacing height
with display: none/block works almost fine in both. Problem
here: display:none changes the size of the div due to the
browser can't read the values from the content parts. Is there
another solution or do I have to write the width via .css into
the outer div?
thx
TC