| Page 1 of 1 | [ 4 posts ] |
|
How to resize the height of ScrollingDataTable dynamically?
I use layout manager to construct the page, the ScrollingDataTable is in the main area. When I resize the window, I need the ScrollingDataTable also resize the height automatically. How to achieve that? Thanks in advance. |
|
I tried
Dom.setStyle(myDataTable, 'height', (Dom.getClientHeight() - 65 - 100) + 'px'); But no success. |
|
You really can't resize the SDT by changing styles. The only way I can think of is to destroy/regenerate the SDT after the panel resize.
Somebody else just asked about this at http://new.yuilibrary.com/forum/viewtopic.php?f=90&t=8402. |
|
Thanks, Todd.
Just found the way to do that. As dataTable is a YAHOO.util.Element object, so I just call the set() method inherited from Element to setup the config property. myDataTable.set("height", "100px"); |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group