Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
on resize for regions?
#1
Standard HTML+JS only provides resize events for windows and frames. However Intraweb also resizes controls using the align functionality.  (e.g. when a splitter is used)

There are a couple of places where I've embedded content that needs to be notified of resize so they can redraw themselves. I've got the following code in one such place:

Code:
window.resize(function(){
          CurDgm.PanZoom.resize();
          CurDgm.PanZoom.fit();
          CurDgm.PanZoom.center();
    });


That code works as expected when the browser is resized.  However, when a splitter is used that causes the containing region to change size, that function will not be called.

Is there an IW event handler I can hook to to call this code when a region changes size?


Thanks!
Reply


Messages In This Thread
on resize for regions? - by pete@pdmagic.com - 07-07-2019, 09:40 PM
RE: on resize for regions? - by kudzu - 07-22-2019, 04:46 PM
RE: on resize for regions? - by Alexandre Machado - 04-15-2022, 04:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)