The Blog

Small bug fix

Building upon the techniques I wrote about, WCH is recoded in such manner. By itself, this would not warrant an entry, but I also introduced one change.

Previously, when you first call WCH.Apply("layer", "cont"), it would create an iFrame with an id of WCHhiderlayer. It will also position the iFrame to be the exact size and at exact position (exact…more or less) as the layer is (minding the positioned container). All fine until now.

However, if the layer changes its position or size, its corresponding WCH layer will not. I noticed this bug when testing out ADxMenu behavior when window is resized.

Apply method now has 3rd parameter, bResize. If its value is true, and the iFrame needed already exists, sizing and positioning will be repeated.

this.Apply = function(vLayer, vContainer, bResize) {
  ...
  if ( _bIE55 &&
    (oIframe = _Hider(vLayer, vContainer, bResize)) ) {
  ...
};
...
function _Hider(vLayer, vContainer, bResize) {
  ...
  if ( !oIframe ) {
    ...
  } else if (bResize) {
    _SetPos(oIframe, oLayer);
  }
  ...
};

Now you just need to decide when should this parameter be true.

Banca

Banca

Beautiful and functional currency converter, supports just about any currency in the world.

Go Couch to 5k

Go Couch to 5k

The most popular starter running program in beautiful feature-rich app (GPS tracking, charts, detailed history etc)

Quickie to do

Quickie to do

The fastest short-term task-list / check-list app on the App Store. Really.

Guerrilla Cardio

Guerrilla Cardio

The most challenging high-impulse interval training in the world.

Run Mate

Run Mate

A versatile running coach app, with unlimited number of running programs. Perfect for casual runners.

8 Comments

Feel free to chime in, looking forward to it. Leave a Comment

  1. Koen Calliauw says:

    Hi,

    could somebody take a look at http://www.edu21.be

    at the bottom of the page, you can see what I see:
    half the box is shown through my menu (the luna-style one).

    I have broke my head over this, so I really hope someone can help
    me out.

    Thanks,
    Koen Calliauw

  2. Koen Calliauw says:

    And oh,

    this is latest version of IE, WCHADX,…

  3. Aleksandar says:

    Koen, I think this is because your nested ULs don’t have IDs, so WCH is using one dummy layer for each menu.
    I never experienced this as I’m using the same example HTML code, back from version 1, which had IDs in place from the beggining.

    So, give your inner lists some IDs, like InformatieMenu, ContactMenu etc. and let me know if it worked. I will update the corresponding pages about this issue.

  4. Koen Calliauw says:

    Hi,

    works like a charm, thank you!

  5. Dave Fischer says:

    How do I et this to work — do i need to download a .js file? If so where do I et it. I really need this on my site, but, I need an idiots guide I guess.

  6. Aleksandar says:

    Dave, take a look at Intro section (linked from the homepage).

  7. Doug says:

    That fix only works for IE5.5 right? Here’s what I have for 6:

    this.Apply = function(vLayer, vContainer, bResize) {
    if (_bSetup) _Setup();
    // mod begin
    else {
    var oLayer = _GetObj(vLayer);
    _SetPos(oIframe, oLayer);
    }
    // mod end

  8. Aleksandar says: (Author)

    WCH is made for both IE 5.5 and IE6.

Comments are now closed for this article.