PDA

View Full Version : TreeView's node's height appear to be hardcoded



em_te
24 Mar 2007, 10:38 PM
I created a TreeView and used it on a site with a larger font (audience is older folks) and the Tree's node's height don't seem to expand accordingly. They seem to have a hardcoded height. You can test it out by just opening the YUI-Exit documentation site http://www.yui-ext.com/deploy/yui-ext/docs/ and increase the font size in the browser (Ctrl++) and then reload the site (to trigger layout()) and look at the tree.

JeffHowden
24 Mar 2007, 11:04 PM
In IE6, the actual font-size is a fixed height. Firefox works correctly when font-size is increased. I don't have IE7 handy to check it there just yet. Can you screencap what you're observing?

em_te
25 Mar 2007, 8:14 AM
In IE6, the actual font-size is a fixed height. Firefox works correctly when font-size is increased. I don't have IE7 handy to check it there just yet. Can you screencap what you're observing?
Thanks. Here's the screencap. The red lines I added myself to show the misalignment.

http://img253.imageshack.us/img253/7572/yuinv0.gif
enlarge (http://img253.imageshack.us/my.php?image=yuinv0.gif)

JeffHowden
25 Mar 2007, 11:33 AM
You do know the tree in the docs isn't an Ext TreePanel, right?

em_te
27 Mar 2007, 2:01 AM
You do know the tree in the docs isn't an Ext TreePanel, right?

Sorry. What's the difference?

JeffHowden
27 Mar 2007, 2:08 AM
You do know the tree in the docs isn't an Ext TreePanel, right?

Sorry. What's the difference?

The Ext TreePanel is a complete widget with all manner of functionality while the "tree" in the doc viewer is just a simple arrangement of HTML elements with some hide/show functionality and some click handlers attached. It's no TreePanel, that's for sure.