¡@

Home 

2014/10/16 ¤W¤È 12:06:09

jquery Programming Glossary: panelheight

How to fire a callback function after a for-loop is done in Jquery?

http://stackoverflow.com/questions/11046456/how-to-fire-a-callback-function-after-a-for-loop-is-done-in-jquery

and adjust the height and width of elements on screen. panelHeight sets the height of target elements to the available screen height.. second functions panelWidth fires AFTER the first function panelHeight is done. If the target element is long and has a scrollbar it.. element is long and has a scrollbar it will be removed by panelHeight but if this is not done before panelWidth fires the set width..

How to fire a callback function after a for-loop is done in Jquery?

http://stackoverflow.com/questions/11046456/how-to-fire-a-callback-function-after-a-for-loop-is-done-in-jquery

for loop is done in Jquery I have two functions that caluclate and adjust the height and width of elements on screen. panelHeight sets the height of target elements to the available screen height while panelWidth adjusts the width of elements. My problem.. the width of elements. My problem I cannot ensure the second functions panelWidth fires AFTER the first function panelHeight is done. If the target element is long and has a scrollbar it will be removed by panelHeight but if this is not done before.. AFTER the first function panelHeight is done. If the target element is long and has a scrollbar it will be removed by panelHeight but if this is not done before panelWidth fires the set width will be off by the space taken up by the scrollbar 17px still..