Setting DIV Height in IE

Posted in: Development, FeedLounge

I implemented resizable panes in FeedLounge this afternoon. Everything went rather smoothly (I’d prototyped it in the San Jose Airport and on the plane last month), until I found one very strange issue in IE.

When I resized the vertically separated panes, they would only go in one direction. Moving the bar down worked fine, but moving the bar up didn’t work. A little poking around and I discovered that the style.height was getting set properly, but was apparently being ignored. Of course, this all worked just fine in Firefox, Camino and Safari. :bang:

After much frustration, I enlisted some help from an old colleague and we found a work-around:

  1. Hide all child elements in the div.
  2. Size the div.
  3. Size the child elements in the div (relative to the new div height).
  4. Show all the child elements in the div.

I guess the child elements were pushing the div back to the previous height.

I love developing web applications…
I love developing web applications…
I love developing web applications…
I love developing web applications…
I love developing web applications…

Oh, and I also discovered that Safari doesn’t support many cursors either. In what must have been an odd set of decisions, Safari supports all “one way arrow” cursors (e-resize, n-resize, etc.) but no “two way arrow” cursors (col-resize, row-resize, etc.).

Good times!!

Popularity: 4% [?]

Posted February 9th, 2006 @ 12:53 AM

3 Replies

  1. Woody adds this Comment:

    It doesn’t seem to be resizeable in the demo (using FF)

    February 9th, 2006 at 7:44 am

  2. Alex adds this Comment:

    The demo hasn’t been updated to the gfmorris release yet so we can’t push new features to it. Once the performance changes are in, we’ll update the demo as well.

    February 9th, 2006 at 11:43 am

  3. Adam Keys adds this Comment:

    Your “bashing head on brick wall” emoticon reminded me of the reason I first loved your site: your finger “quotes”. Maybe its because I’ve mostly been reading in a reader, but I’d really love to see those more often :)

    February 10th, 2006 at 10:07 am

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over 3 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

Voting System » « Treo 600 Dying

About This Site

This is the personal web site of Alex King, a web developer in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

America - america09.com

Ads

web design services