Mercurial > dwindows
diff mac/dw.m @ 1566:035bc006afbe
Experimental change... halfway between min and max for tree controls.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 20 Jan 2012 18:47:10 +0000 |
parents | d84a690448c3 |
children | d6e17c8f4de2 |
line wrap: on
line diff
--- a/mac/dw.m Fri Jan 20 04:52:12 2012 +0000 +++ b/mac/dw.m Fri Jan 20 18:47:10 2012 +0000 @@ -3635,8 +3635,8 @@ /* Tree */ else if([ object isMemberOfClass:[DWTree class] ]) { - thiswidth = _DW_SCROLLED_MAX_WIDTH; - thisheight = _DW_SCROLLED_MAX_HEIGHT; + thiswidth = (int)((_DW_SCROLLED_MAX_WIDTH + _DW_SCROLLED_MIN_WIDTH)/2); + thisheight = (int)((_DW_SCROLLED_MAX_HEIGHT + _DW_SCROLLED_MIN_HEIGHT)/2); } /* Any other control type */ else if([ object isKindOfClass:[ NSControl class ] ])