简体   繁体   中英

Get size of pane after resize

I am using jQuery Layout. I have a very simple layout with one vertical pane (west). Is it possible to get the size of the west pane after it has been resized. Below is a code snippet of an example where a call to a function happens on the resize event. I would like to get the new size after the resize, is this possible?

var myLayout;
set_layout();
function set_layout(){
  myLayout = $("#my-div").layout({
    west:{
    size: 280,
    fxName: "slide",
    fxSpeed: 500,
    onresize_end: function(){ get_width(); }
    }
  });
}

function get_width(){
  code to get the WIDTH
}

I found the answer to my own question. I was queering the wrong DIV element. Once I queried the width of the correct DIV I got what I want. I needed to query a DIV element inside #my-div element.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM